[gcjx] Patch: FYI: gc-protect utf8consts
Tom Tromey
tromey@redhat.com
Sun Mar 27 02:58:00 GMT 2005
I'm checking this in on the gcjx branch.
This prevents the GC from collecting utf8const objects.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* builtins.cc (map_utf8const): Call pushdecl.
Index: builtins.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Attic/builtins.cc,v
retrieving revision 1.1.2.26
diff -u -r1.1.2.26 builtins.cc
--- builtins.cc 27 Mar 2005 02:53:26 -0000 1.1.2.26
+++ builtins.cc 27 Mar 2005 02:55:33 -0000
@@ -498,6 +498,7 @@
make_decl_rtl (decl);
utf8map[value] = build_address_of (decl);
+ pushdecl (utf8map[value]);
}
return utf8map[value];
}
More information about the Java-patches
mailing list