Revision a4641c8b75b93ce30b706fceed7d2af976f8e578 authored by Jameson Nash on 06 May 2020, 19:12:05 UTC, committed by GitHub on 06 May 2020, 19:12:05 UTC
Ensures that we are holding some lock (a new one) while mutating the
internal global `jl_current_modules` table.

While reading these binding values is not memory-safe to do
simultaneously (it may invent pointers from thin-air and segfault), this
commit ensures that a data conflict during the writes to them will
not corrupt the values written into memory.
1 parent c3d6a46
Raw File
filterArgs.sh
#!/bin/sh
# This file is a part of Julia. License is MIT: https://julialang.org/license

# Loop over all command line arguments
for i in "$@"; do
    # If an argument starts with -L, echo it out sans -L!
    case $i in
    -L*) printf '"%s"\n' "${i#-L}" ;;
    esac
done
back to top