Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luajit_2_0, luajit_2_1: bump to 2020-03-20, GC64 mode switch #85483

Merged
merged 1 commit into from May 1, 2020

Conversation

@lblasc
Copy link
Contributor

lblasc commented Apr 18, 2020

Motivation for this change

Follows "the plan": #77800 (comment)

  • update luajit_2_1 to latest 2.1 branch and build it with -DLUAJIT_DISABLE_GC64 by default
  • add flag in luajit_2_1 package E.g. gc64 so packages like Minetest can use LJ_GC64 variant easily

LuaJIT didn't release for a long time, there are lots of stability fixes (especially for aarch64) and GC64 mode (no more memory limit on first 2G of process space) is finally usable for production but still disabled by default, it can be turned on by new enableGC64 flag.

Heavy LuaJIT consumers like OpenResty are using latest git versions for stability and performance. It should be safe to use them for default LuaJIT interpreter.

Should solve #77800

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

cc @vcunat

Copy link
Member

vcunat left a comment

Seems OK, if the comments get fixed. I could do that myself, but I want to wait for (your) feedback anyway before merging that.

I checked x86_64 and aarch64 a little, by building knot-resolver the three combinations (2.0 doesn't support aarch64; tests run luajit stuff inside).

pkgs/development/interpreters/luajit/default.nix Outdated Show resolved Hide resolved
pkgs/development/interpreters/luajit/2.1.nix Outdated Show resolved Hide resolved
pkgs/development/interpreters/luajit/2.0.nix Outdated Show resolved Hide resolved
@vcunat vcunat mentioned this pull request Apr 26, 2020
2 of 10 tasks complete
@lblasc lblasc force-pushed the lblasc:luajit-2020-03-20 branch from e7de0a7 to b67cbe5 Apr 27, 2020
@ofborg ofborg bot requested a review from vcunat Apr 27, 2020
@vcunat
vcunat approved these changes Apr 27, 2020
@vcunat vcunat merged commit b9f359b into NixOS:master May 1, 2020
16 checks passed
16 checks passed
Evaluation Performance Report Evaluator Performance Report
Details
grahamcofborg-eval ^.^!
Details
grahamcofborg-eval-check-maintainers matching changed paths to changed attrs...
Details
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
grahamcofborg-eval-darwin nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="b67cbe5"; rev="b67cbe5a2d5b5c9a299a9721a06eed235e2278ed"; } ./pkgs/t
Details
grahamcofborg-eval-lib-tests nix-build --arg pkgs import ./. {} ./lib/tests/release.nix
Details
grahamcofborg-eval-nixos nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="b67cbe5"; rev="b67cbe5a2d5b5c9a299a9721a06eed235e2278ed"; } ./nixos/
Details
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="b67cbe5"; rev="b67cbe5a2d5b5c9a299a9721a06eed235e2278ed"; } ./nixos/
Details
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="b67cbe5"; rev="b67cbe5a2d5b5c9a299a9721a06eed235e2278ed"; } ./nixos/
Details
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="b67cbe5"; rev="b67cbe5a2d5b5c9a299a9721a06eed235e2278ed"; } ./pkgs/t
Details
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="b67cbe5"; rev="b67cbe5a2d5b5c9a299a9721a06eed235e2278ed"; } ./pkgs/t
Details
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="b67cbe5"; rev="b67cbe5a2d5b5c9a299a9721a06eed235e2278ed"; } ./pkgs/t
Details
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
luajit_2_0, luajit_2_0.passthru.tests, luajit_2_1, luajit_2_1.passthru.tests on aarch64-linux Success
Details
luajit_2_0, luajit_2_0.passthru.tests, luajit_2_1, luajit_2_1.passthru.tests on x86_64-linux Success
Details
@lblasc lblasc deleted the lblasc:luajit-2020-03-20 branch May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.