Skip to content

Instantly share code, notes, and snippets.

@jnthn
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/c885ee5263406d17e3d0 to your computer and use it in GitHub Desktop.
Save jnthn/c885ee5263406d17e3d0 to your computer and use it in GitHub Desktop.
diff --git a/src/6model/reprs/MVMMultiCache.c b/src/6model/reprs/MVMMultiCache.c
index 94d0943..bc93e3b 100644
--- a/src/6model/reprs/MVMMultiCache.c
+++ b/src/6model/reprs/MVMMultiCache.c
@@ -148,7 +148,7 @@ MVMObject * MVM_multi_cache_add(MVMThreadContext *tc, MVMObject *cache_obj, MVMO
MVMObject *arg = MVM_args_get_pos_obj(tc, apc, i, 1).arg.o;
if (arg) {
MVMContainerSpec const *contspec = STABLE(arg)->container_spec;
- if (contspec) {
+ if (contspec && IS_CONCRETE(arg)) {
if (contspec->fetch_never_invokes) {
MVMRegister r;
contspec->fetch(tc, arg, &r);
@@ -231,7 +231,7 @@ MVMObject * MVM_multi_cache_find(MVMThreadContext *tc, MVMObject *cache_obj, MVM
MVMObject *arg = MVM_args_get_pos_obj(tc, apc, i, 1).arg.o;
if (arg) {
MVMContainerSpec const *contspec = STABLE(arg)->container_spec;
- if (contspec) {
+ if (contspec && IS_CONCRETE(arg)) {
if (contspec->fetch_never_invokes) {
MVMRegister r;
contspec->fetch(tc, arg, &r);
@@ -309,7 +309,7 @@ MVMObject * MVM_multi_cache_find_callsite_args(MVMThreadContext *tc, MVMObject *
MVMObject *arg = args[i].o;
if (arg) {
MVMContainerSpec const *contspec = STABLE(arg)->container_spec;
- if (contspec) {
+ if (contspec && IS_CONCRETE(arg)) {
if (contspec->fetch_never_invokes) {
MVMRegister r;
contspec->fetch(tc, arg, &r);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment