Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* fixed: libgdx/7212 -- crash when getting value by pointer, affected by GC #743

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler/vm/core/src/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ void rvmSetupGcDescriptor(Env* env, Class* clazz) {
// and will be reachable even if we allocate this using REF_FREE_GC_DESCRIPTOR.
clazz->gcDescriptor = REF_FREE_GC_DESCRIPTOR;
} else if (clazz == java_lang_Class || CLASS_IS_FINALIZABLE(clazz) || CLASS_IS_REFERENCE(clazz)
|| (clazz->superclass && clazz->superclass == org_robovm_rt_bro_Struct)
|| (clazz->superclass && clazz->superclass == java_nio_MemoryBlock)
|| (clazz == java_nio_MemoryBlock) || rvmIsSubClass(java_lang_Throwable, clazz)) {
|| (clazz == java_nio_MemoryBlock) || rvmIsSubClass(java_lang_Throwable, clazz)
|| (clazz->superclass && rvmIsSubClass(org_robovm_rt_bro_Struct, clazz))) {

// These types of objects must be marked specially. We could probably
// do this using GC bitmap descriptors instead.
Expand Down
Loading