[svn:parrot] r39183 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Tue May 26 21:11:56 UTC 2009
Author: chromatic
Date: Tue May 26 21:11:56 2009
New Revision: 39183
URL: https://trac.parrot.org/parrot/changeset/39183
Log:
[PMC] Replaced an unnecessary calloc() with a regular malloc().
Modified:
trunk/src/pmc/retcontinuation.pmc
Modified: trunk/src/pmc/retcontinuation.pmc
==============================================================================
--- trunk/src/pmc/retcontinuation.pmc Tue May 26 21:10:07 2009 (r39182)
+++ trunk/src/pmc/retcontinuation.pmc Tue May 26 21:11:56 2009 (r39183)
@@ -36,11 +36,12 @@
*/
VTABLE void init() {
- Parrot_RetContinuation_attributes *attrs =
- mem_allocate_zeroed_typed(Parrot_RetContinuation_attributes);
- PMC_data(SELF) = attrs;
+ Parrot_RetContinuation_attributes * const attrs =
+ mem_allocate_typed(Parrot_RetContinuation_attributes);
+ PMC_data(SELF) = attrs;
PMC_cont(SELF) = new_ret_continuation(INTERP);
+
PObj_custom_mark_destroy_SETALL(SELF);
}
More information about the parrot-commits
mailing list