This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: gc-protect utf8consts


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];
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]