@@ -327,21 +327,22 @@ class OMR_EXTENSIBLE Compilation : public OMR::CompilationConnector
327
327
#if defined(J9VM_OPT_JITSERVER)
328
328
static bool isOutOfProcessCompilation () { return _outOfProcessCompilation; } // server side
329
329
static void setOutOfProcessCompilation () { _outOfProcessCompilation = true ; }
330
+
330
331
bool isRemoteCompilation () const { return _remoteCompilation; } // client side
331
332
void setRemoteCompilation () { _remoteCompilation = true ; }
332
- TR::list<SerializedRuntimeAssumption*>& getSerializedRuntimeAssumptions () { return _serializedRuntimeAssumptions; }
333
+
334
+ TR::list<SerializedRuntimeAssumption *> &getSerializedRuntimeAssumptions () { return _serializedRuntimeAssumptions; }
335
+
333
336
ClientSessionData *getClientData () const { return _clientData; }
334
337
void setClientData (ClientSessionData *clientData) { _clientData = clientData; }
335
- void switchToPerClientMemory ()
336
- {
337
- _trMemory = _perClientMemory;
338
- }
339
- void switchToGlobalMemory ()
340
- {
341
- _trMemory = &_globalMemory;
342
- }
343
338
344
- TR::list<TR_OpaqueMethodBlock *>& getMethodsRequiringTrampolines () { return _methodsRequiringTrampolines; }
339
+ JITServer::ServerStream *getStream () const { return _stream; }
340
+ void setStream (JITServer::ServerStream *stream) { _stream = stream; }
341
+
342
+ void switchToPerClientMemory () { _trMemory = _perClientMemory; }
343
+ void switchToGlobalMemory () { _trMemory = &_globalMemory; }
344
+
345
+ TR::list<TR_OpaqueMethodBlock *> &getMethodsRequiringTrampolines () { return _methodsRequiringTrampolines; }
345
346
346
347
bool isAOTCacheStore () const { return _aotCacheStore; }
347
348
void setAOTCacheStore (bool store) { _aotCacheStore = store; }
@@ -439,7 +440,7 @@ class OMR_EXTENSIBLE Compilation : public OMR::CompilationConnector
439
440
#if defined(J9VM_OPT_JITSERVER)
440
441
// This list contains assumptions created during the compilation at the JITServer
441
442
// It needs to be sent to the client at the end of compilation
442
- TR::list<SerializedRuntimeAssumption*> _serializedRuntimeAssumptions;
443
+ TR::list<SerializedRuntimeAssumption *> _serializedRuntimeAssumptions;
443
444
// The following flag is set when this compilation is performed in a
444
445
// VM that does not have the runtime part (server side in JITServer)
445
446
static bool _outOfProcessCompilation;
@@ -449,6 +450,8 @@ class OMR_EXTENSIBLE Compilation : public OMR::CompilationConnector
449
450
// Client session data for the client that requested this out-of-process
450
451
// compilation (at the JITServer); unused (always NULL) at the client side
451
452
ClientSessionData *_clientData;
453
+ // Server stream used by this out-of-process compilation; always NULL at the client
454
+ JITServer::ServerStream *_stream;
452
455
453
456
TR_Memory *_perClientMemory;
454
457
TR_Memory _globalMemory;
0 commit comments