This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: gc-protect utf8consts
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 26 Mar 2005 19:53:34 -0700
- Subject: [gcjx] Patch: FYI: gc-protect utf8consts
- Reply-to: tromey at redhat dot com
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];
}