Skip to content

Commit

Permalink
Merge pull request #7619 from harryyu1994/jitserver
Browse files Browse the repository at this point in the history
Add JITServer override for createMethodHandleArchetypeSpecimen
  • Loading branch information
mpirvu authored Oct 29, 2019
2 parents dc7b78c + d27c88e commit 6c44412
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions runtime/compiler/env/VMJ9Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,12 @@ TR_J9ServerVM::needsInvokeExactJ2IThunk(TR::Node *callNode, TR::Compilation *com
}
}

TR_ResolvedMethod *
TR_J9ServerVM::createMethodHandleArchetypeSpecimen(TR_Memory *trMemory, TR_OpaqueMethodBlock *archetype, uintptrj_t *methodHandleLocation, TR_ResolvedMethod *owningMethod)
{
return createMethodHandleArchetypeSpecimen(trMemory, methodHandleLocation, owningMethod);
}

TR_ResolvedMethod *
TR_J9ServerVM::createMethodHandleArchetypeSpecimen(TR_Memory *trMemory, uintptrj_t *methodHandleLocation, TR_ResolvedMethod *owningMethod)
{
Expand Down
3 changes: 2 additions & 1 deletion runtime/compiler/env/VMJ9Server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ class TR_J9ServerVM: public TR_J9VM
virtual bool isClassLoadedBySystemClassLoader(TR_OpaqueClassBlock *clazz) override;
virtual void setInvokeExactJ2IThunk(void *thunkptr, TR::Compilation *comp) override;
virtual bool needsInvokeExactJ2IThunk(TR::Node *node, TR::Compilation *comp) override;
virtual TR_ResolvedMethod *createMethodHandleArchetypeSpecimen(TR_Memory *, uintptrj_t *methodHandleLocation, TR_ResolvedMethod *owningMethod = 0) override;
virtual TR_ResolvedMethod *createMethodHandleArchetypeSpecimen(TR_Memory *trMemory, uintptrj_t *methodHandleLocation, TR_ResolvedMethod *owningMethod = 0) override;
virtual TR_ResolvedMethod *createMethodHandleArchetypeSpecimen(TR_Memory *trMemory, TR_OpaqueMethodBlock *archetype, uintptrj_t *methodHandleLocation, TR_ResolvedMethod *owningMethod = 0) override;
virtual intptrj_t getVFTEntry(TR_OpaqueClassBlock *clazz, int32_t offset) override;
virtual bool isClassArray(TR_OpaqueClassBlock *klass) override;
virtual uintptrj_t getFieldOffset(TR::Compilation * comp, TR::SymbolReference* classRef, TR::SymbolReference* fieldRef) override { return 0; } // safe answer
Expand Down

0 comments on commit 6c44412

Please sign in to comment.