mirror of
https://github.com/corda/corda.git
synced 2025-02-01 16:58:27 +00:00
fix arm build
This commit is contained in:
parent
4b7b3d2680
commit
2778531873
@ -74,11 +74,16 @@ GcField* fieldForOffsetInClass(Thread* t, GcClass* c, unsigned offset)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
GcField* fieldForOffset(Thread* t, GcSingleton* o, unsigned offset)
|
GcField* fieldForOffset(Thread* t, object o, unsigned offset)
|
||||||
{
|
{
|
||||||
GcClass* c = objectClass(t, o);
|
GcClass* c = objectClass(t, o);
|
||||||
if (c->vmFlags() & SingletonFlag) {
|
if (c->vmFlags() & SingletonFlag) {
|
||||||
c = cast<GcClass>(t, singletonObject(t, o, 0));
|
GcSingleton* s = cast<GcSingleton>(t, o);
|
||||||
|
|
||||||
|
// If the object is a Singleton, we assume it's the static table of a class -
|
||||||
|
// which will always have the parent class as the first (0th) element.
|
||||||
|
c = cast<GcClass>(t, singletonObject(t, s, 0));
|
||||||
|
|
||||||
object table = c->fieldTable();
|
object table = c->fieldTable();
|
||||||
if (table) {
|
if (table) {
|
||||||
for (unsigned i = 0; i < objectArrayLength(t, table); ++i) {
|
for (unsigned i = 0; i < objectArrayLength(t, table); ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user