[Vm-dev] [commit][3736] CogVM source as per VMMaker.oscog-eem.1879
commits at squeakvm.org
commits at squeakvm.org
Thu Jun 2 01:08:20 UTC 2016
Revision: 3736
Author: eliot
Date: 2016-06-01 18:08:20 -0700 (Wed, 01 Jun 2016)
Log Message:
-----------
CogVM source as per VMMaker.oscog-eem.1879
Follow-up to VMMaker.oscog-eem.1878:
Check for allocation failure in the LargeIntegersPlugin and fail primitives
when space runs out.
Modified Paths:
--------------
branches/Cog/src/plugins/LargeIntegers/LargeIntegers.c
Property Changed:
----------------
branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
___________________________________________________________________
Modified: checkindate
- Wed Jun 1 17:58:41 PDT 2016
+ Wed Jun 1 18:07:02 PDT 2016
Modified: branches/Cog/src/plugins/LargeIntegers/LargeIntegers.c
===================================================================
--- branches/Cog/src/plugins/LargeIntegers/LargeIntegers.c 2016-06-02 01:00:59 UTC (rev 3735)
+++ branches/Cog/src/plugins/LargeIntegers/LargeIntegers.c 2016-06-02 01:08:20 UTC (rev 3736)
@@ -1,9 +1,9 @@
/* Automatically generated by
- SmartSyntaxPluginCodeGenerator VMMaker.oscog-eem.1878 uuid: 71f5bdb3-74c3-4a8c-bbb9-c78c327e4823
+ SmartSyntaxPluginCodeGenerator VMMaker.oscog-eem.1879 uuid: 46459a03-d9ee-4422-9c65-f863b50b7992
from
- LargeIntegersPlugin VMMaker.oscog-eem.1878 uuid: 71f5bdb3-74c3-4a8c-bbb9-c78c327e4823
+ LargeIntegersPlugin VMMaker.oscog-eem.1879 uuid: 46459a03-d9ee-4422-9c65-f863b50b7992
*/
-static char __buildInfo[] = "LargeIntegersPlugin VMMaker.oscog-eem.1878 uuid: 71f5bdb3-74c3-4a8c-bbb9-c78c327e4823 " __DATE__ ;
+static char __buildInfo[] = "LargeIntegersPlugin VMMaker.oscog-eem.1879 uuid: 46459a03-d9ee-4422-9c65-f863b50b7992 " __DATE__ ;
@@ -190,9 +190,9 @@
struct VirtualMachine* interpreterProxy;
static const char *moduleName =
#ifdef SQUEAK_BUILTIN_PLUGIN
- "LargeIntegers v2.0 VMMaker.oscog-eem.1878 (i)"
+ "LargeIntegers v2.0 VMMaker.oscog-eem.1879 (i)"
#else
- "LargeIntegers v2.0 VMMaker.oscog-eem.1878 (e)"
+ "LargeIntegers v2.0 VMMaker.oscog-eem.1879 (e)"
#endif
;
static const int orOpIndex = 1;
@@ -2150,6 +2150,9 @@
aBytesObject = popRemappableOop()
#endif /* SPURVM */
;
+ if (!(newBytes)) {
+ return primitiveFailFor(PrimErrNoMemory);
+ }
newDigitLen = (newByteLen + 3) / 4;
oldDigitLen = ((slotSizeOf(aBytesObject)) + 3) / 4;
copyLen = (oldDigitLen < newDigitLen
More information about the Vm-dev
mailing list