Skip to content

Commit

Permalink
Avoid invalidations in constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jul 6, 2018
1 parent c18acef commit 2da94cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ public static NativeObject newNativeLongs(final SqueakImageContext img, final Cl
protected NativeObject(final SqueakImageContext image, final ClassObject classObject, final Object storage) {
super(image, classObject);
assert storage != null;
setStorage(storage);
this.storage = storage;
}

public NativeObject(final SqueakImageContext image) { // constructor for special selectors
super(image, null);
setStorage(new byte[0]);
storage = new byte[0];
}

@TruffleBoundary
Expand Down

0 comments on commit 2da94cc

Please sign in to comment.