11/* Automatically generated by
2- CCodeGeneratorGlobalStructure VMMaker.oscog-eem.3664 uuid: bec3b39b-863c-43da-aa70-36c06b3b38bf
2+ CCodeGeneratorGlobalStructure VMMaker.oscog-eem.3665 uuid: 9cd32573-c437-4720-9de2-db5b7c255d7d
33 (Cog-eem.502, Compiler-eem.520)
44 from
5- CoInterpreterMT VMMaker.oscog-eem.3664 uuid: bec3b39b-863c-43da-aa70-36c06b3b38bf
5+ CoInterpreterMT VMMaker.oscog-eem.3665 uuid: 9cd32573-c437-4720-9de2-db5b7c255d7d
66 */
7- static char __buildInfo[] = "CoInterpreterMT VMMaker.oscog-eem.3664 uuid: bec3b39b-863c-43da-aa70-36c06b3b38bf " __DATE__ ;
7+ static char __buildInfo[] = "CoInterpreterMT VMMaker.oscog-eem.3665 uuid: 9cd32573-c437-4720-9de2-db5b7c255d7d " __DATE__ ;
88char *__interpBuildInfo = __buildInfo;
99
1010
@@ -715,7 +715,7 @@ static NoDbgRegParms sqInt transferTofrom(sqInt newProcOrNil, sqInt sourceCode);
715715static NoDbgRegParms void waitingPriorityIsAtLeast(sqInt minPriority);
716716static NoDbgRegParms int frameIsMarked(sqInt theFPInt);
717717#if VMInvestigations
718- EXPORT(sqInt ) primitiveAllMethodsCompiledToMachineCode(void);
718+ EXPORT(int ) primitiveAllMethodsCompiledToMachineCode(void);
719719#endif /* VMInvestigations */
720720#if VMInvestigations
721721EXPORT(void) primitiveBenchmarkFollowForwardersInStackZone(void);
@@ -1959,7 +1959,6 @@ _iss sqInt relinquishing;
19591959_iss sqInt shrinkThreshold;
19601960_iss sqInt statTenures;
19611961_iss sqInt thisClassIndex;
1962- _iss sqInt foreignCallbackProcessSlot;
19631962_iss sqInt metaclassNumSlots;
19641963_iss sqInt pendingFinalizationSignals;
19651964_iss sqInt preemptionYields;
@@ -2802,7 +2801,7 @@ sqInt debugCallbackReturns;
28022801sqInt suppressHeartbeatFlag;
28032802sqInt cannotDeferDisplayUpdates;
28042803sqInt checkedPluginName;
2805- const char *interpreterVersion = "Open Smalltalk Cog MT VM [CoInterpreterMT VMMaker.oscog-eem.3664 ]";
2804+ const char *interpreterVersion = "Open Smalltalk Cog MT VM [CoInterpreterMT VMMaker.oscog-eem.3665 ]";
28062805const char * leakCheckFlagsMeanings[] = {
28072806 "1: check full GC", "2: check new space GC", "4: check incremental GC", "8: check become",
28082807 "16: check image segment", "32: check free space", "64: check shorten", "128: check prim call",
@@ -21211,11 +21210,8 @@ readImageFromFileHeapSizeStartingAt(sqImageFile f, usqInt desiredHeapSize, squea
2121121210 }
2121221211 GIV(metaAccessorDepth) = -2;
2121321212 sHEAFn = ioLoadFunctionFrom("secHasEnvironmentAccess", "SecurityPlugin");
21214- if ((lengthOf(GIV(specialObjectsOop))) > ForeignCallbackProcess) {
21215- GIV(foreignCallbackProcessSlot) = ForeignCallbackProcess;
21216- }
21217- else {
21218- GIV(foreignCallbackProcessSlot) = NilObject;
21213+ if (!((lengthOf(GIV(specialObjectsOop))) > ForeignCallbackProcess)) {
21214+ error("The image is unsuitable for the MT VM because specialObjectsArray is too short to contain the foreign callback process.");
2121921215 }
2122021216 atomic_store((&GIV(maxWaitingPriority)), 0);
2122121217 initializeCodeZoneFromupTo(cogCodeBase, cogCodeBase + GIV(cogCodeSize));
@@ -23062,7 +23058,7 @@ disownVM(sqInt flags)
2306223058 assertCStackPointersBelongToCurrentThread();
2306323059 assertValidNewMethodPropertyFlags();
2306423060 if (((flags & DisownVMForProcessorRelinquish) != 0)) {
23065- if (((proc = longAt((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(GIV(foreignCallbackProcessSlot) ) << (shiftForWord())))))))) != GIV(nilObj)) {
23061+ if (((proc = longAt((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(ForeignCallbackProcess ) << (shiftForWord())))))))) != GIV(nilObj)) {
2306623062 /* begin quickFetchInteger:ofObject: */
2306723063 oop = longAt((void *)((proc + BaseHeaderSize) + ((((usqInt)(PriorityIndex) << (shiftForWord()))))));
2306823064 assert((oop & 1));
@@ -23591,9 +23587,9 @@ ownVMFromUnidentifiedThread(void)
2359123587 /* this is a callback from a known thread. Simply own the VM for that thread.
2359223588 If the current thread doesn't have an index it's new to the vm
2359323589 and we need to allocate a new threadInfo, failing if we can't.
23594- We also need a process in the foreignCallbackProcessSlot upon
23590+ We also need a process in the ForeignCallbackProcess slot upon
2359523591 which to run the thread's eventual callback. */
23596- while ((longAt((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(GIV(foreignCallbackProcessSlot) ) << (shiftForWord()))))))) == GIV(nilObj)) {
23592+ while ((longAt((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(ForeignCallbackProcess ) << (shiftForWord()))))))) == GIV(nilObj)) {
2359723593 /* begin releaseVM */
2359823594 /* begin setVMOwner: */
2359923595 assert(((getVMOwner()) == -1)
@@ -23868,13 +23864,12 @@ ownVM(void *vmThreadHandle)
2386823864 sched = longAt((void *)(((longAt((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(SchedulerAssociation) << (shiftForWord()))))))) + BaseHeaderSize) + ((((usqInt)(ValueIndex) << (shiftForWord()))))));
2386923865 activeProc = longAt((void *)((sched + BaseHeaderSize) + ((((usqInt)(ActiveProcessIndex) << (shiftForWord()))))));
2387023866 if (((flags & OwnVMForeignThreadFlag) != 0)) {
23871- assert(GIV(foreignCallbackProcessSlot) == ForeignCallbackProcess);
23872- myProc = longAt((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(GIV(foreignCallbackProcessSlot)) << (shiftForWord()))))));
23867+ myProc = longAt((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(ForeignCallbackProcess) << (shiftForWord()))))));
2387323868 assert(myProc != (nilObject()));
2387423869
2387523870 /* begin splObj:put: */
2387623871 /* begin storePointer:ofObject:withValue: */
23877- assert(validStorePointerArgs(GIV(foreignCallbackProcessSlot) , GIV(specialObjectsOop), GIV(nilObj)));
23872+ assert(validStorePointerArgs(ForeignCallbackProcess , GIV(specialObjectsOop), GIV(nilObj)));
2387823873 assert(isNonImmediate(GIV(specialObjectsOop)));
2387923874 if (oopisGreaterThanOrEqualTo(GIV(specialObjectsOop), GIV(oldSpaceStart))) {
2388023875 if (/* isYoung: */
@@ -23888,7 +23883,7 @@ ownVM(void *vmThreadHandle)
2388823883 }
2388923884
2389023885 /* most stores into young objects */
23891- longAtput((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(GIV(foreignCallbackProcessSlot) ) << (shiftForWord()))))),GIV(nilObj));
23886+ longAtput((void *)((GIV(specialObjectsOop) + BaseHeaderSize) + ((((usqInt)(ForeignCallbackProcess ) << (shiftForWord()))))),GIV(nilObj));
2389223887 }
2389323888 else {
2389423889 anAffinity = (vmThread->index);
@@ -26048,7 +26043,7 @@ frameIsMarked(sqInt theFPInt)
2604826043
2604926044 /* CoInterpreterPrimitives>>#primitiveAllMethodsCompiledToMachineCode */
2605026045#if VMInvestigations
26051- EXPORT(sqInt )
26046+ EXPORT(int )
2605226047primitiveAllMethodsCompiledToMachineCode(void)
2605326048{ DECL_MAYBE_SQ_GLOBAL_STRUCT
2605426049 sqInt arrayObj;
@@ -37341,7 +37336,7 @@ primitiveInvokeObjectAsMethod(void)
3734137336 sqInt lookupClassTag;
3734237337 usqInt newObj;
3734337338 usqInt numBytes;
37344- usqInt runArgs;
37339+ sqInt runArgs;
3734537340 sqInt runReceiver;
3734637341 char *sp;
3734737342 sqInt tagBits;
@@ -65902,7 +65897,7 @@ updatePointersInsavedFirstFieldPointer(sqInt obj, sqInt firstFieldPtr)
6590265897 contextSize = (sp >> 1);
6590365898 /* end fetchStackPointerOf: */
6590465899l2:
65905- numPointerSlots = CtxtTempFrameStart + contextSize;
65900+ numPointerSlots = ((usqInt) ( CtxtTempFrameStart + contextSize)) ;
6590665901 goto l3;
6590765902 }
6590865903
@@ -66448,7 +66443,7 @@ prepareForSnapshot(void)
6644866443 sqInt largeChild;
6644966444 sqInt newEndOfMemory;
6645066445 sqInt next;
66451- sqInt node;
66446+ usqInt node;
6645266447 SpurSegmentInfo *seg;
6645366448 SpurSegmentInfo *selfOfSegSize;
6645466449 sqInt smallChild;
0 commit comments