      } else if (arg[0] == '-') {
        // Ignore other options. They have been parsed already.
        continue;
-@@ -2953,6 +3009,8 @@ bool Shell::SetOptions(int argc, char* argv[]) {
+@@ -2881,6 +2937,8 @@ bool Shell::SetOptions(int argc, char* argv[]) {
        current->Begin(argv, i + 1);
      } else if (strcmp(str, "--module") == 0) {
        // Pass on to SourceGroup, which understands this option.

 void Shell::Print(const v8::FunctionCallbackInfo<v8::Value>& args) {
   WriteAndFlush(stdout, args);
 }
@@ -1730,6 +1746,14 @@ Local<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) {
       String::NewFromUtf8(isolate, "print", NewStringType::kNormal)
           .ToLocalChecked(),
       FunctionTemplate::New(isolate, Print));

+  shmem->edges[index / 8] |= 1 << (index % 8);
+  *guard = 0;                 // if multiple threads are active, this can lead to crashes due to race conditions
+}
diff --git a/src/d8/cov.h b/src/d8/cov.h
new file mode 100644
index 0000000000..e6bdfb40b6
--- /dev/null
+++ b/src/d8/cov.h
@@ -0,0 +1,6 @@
+#ifndef V8_COV_H_
+#define V8_COV_H_
