@ExplodeLoop private void notifyAllocated(Object value, long oldSize, long newSize) { CompilerAsserts.partialEvaluationConstant(this); if (!listenersNotChangedAssumption.isValid()) { CompilerDirectives.transferToInterpreterAndInvalidate(); } AllocationListener[] ls = this.listeners; if (ls != null) { AllocationEvent event = new AllocationEvent(language, value, oldSize, newSize); for (AllocationListener l : ls) { l.onReturnValue(event); } } }
@ExplodeLoop private void notifyAllocated(Object value, long oldSize, long newSize) { CompilerAsserts.partialEvaluationConstant(this); if (!listenersNotChangedAssumption.isValid()) { CompilerDirectives.transferToInterpreterAndInvalidate(); } AllocationListener[] ls = this.listeners; if (ls != null) { AllocationEvent event = new AllocationEvent(language, value, oldSize, newSize); for (AllocationListener l : ls) { l.onReturnValue(event); } } }