[svn:parrot] r44454 - trunk/src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Wed Feb 24 18:39:50 UTC 2010
Author: NotFound
Date: Wed Feb 24 18:39:47 2010
New Revision: 44454
URL: https://trac.parrot.org/parrot/changeset/44454
Log:
drop singleton tag from OpLib PMC and set custom mark on it
Modified:
trunk/src/pmc/oplib.pmc
Modified: trunk/src/pmc/oplib.pmc
==============================================================================
--- trunk/src/pmc/oplib.pmc Wed Feb 24 09:49:39 2010 (r44453)
+++ trunk/src/pmc/oplib.pmc Wed Feb 24 18:39:47 2010 (r44454)
@@ -22,7 +22,7 @@
need to cache even a majority of the ~1300 ops. */
static PMC *OPLIB_PMC_INSTANCE;
static PMC *OPLIB_OPCODE_CACHE;
-pmclass OpLib singleton {
+pmclass OpLib {
void class_init() {
OPLIB_PMC_INSTANCE = NULL;
OPLIB_OPCODE_CACHE = NULL;
@@ -39,6 +39,7 @@
VTABLE void init() {
if (OPLIB_OPCODE_CACHE == NULL)
OPLIB_OPCODE_CACHE = Parrot_pmc_new(INTERP, enum_class_Hash);
+ PObj_custom_mark_SET(SELF);
}
VTABLE void mark() {
More information about the parrot-commits
mailing list