Skip to content

Fix UAV::Pilot jcpan tests#694

Merged
fglock merged 2 commits intomasterfrom
fix/uav-pilot-jcpan
May 9, 2026
Merged

Fix UAV::Pilot jcpan tests#694
fglock merged 2 commits intomasterfrom
fix/uav-pilot-jcpan

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented May 9, 2026

Summary

  • fix UAV::Pilot CPAN test failures under ./jcpan -t UAV::Pilot
  • preserve newly compiled CODE lookup semantics after stash deletion while keeping pre-existing compiled call sites pinned
  • keep namespace constants visible through namespace::autoclean
  • align mortal cleanup reachability handling across scoped flush paths so Moose/Class::MOP weak metaclass links survive reachable package-global metadata
  • preserve weak refs for unblessed self-retaining callback cycles used by AnyEvent-style timers

Verification

  • make
  • timeout 60 ./jperl -e 'use Moose; print "ok\n";'
  • timeout 60 ./jperl src/test/resources/unit/namespace_autoclean_constants.t
  • timeout 60 ./jperl src/test/resources/unit/eval_after_stash_delete.t
  • timeout 600 ./jcpan -t UAV::Pilot

@fglock fglock force-pushed the fix/uav-pilot-jcpan branch 2 times, most recently from 263b8dd to 3421d4c Compare May 9, 2026 12:16
Fix PerlOnJava runtime behavior needed for UAV::Pilot, including @inc hook list returns, namespace autoclean constants, CODE lookup/deletion semantics, and weak self-retaining callback cycles.

Generated with Codex (https://openai.com/codex)

Co-Authored-By: OpenAI Codex <codex@openai.com>
@fglock fglock force-pushed the fix/uav-pilot-jcpan branch from 3421d4c to b3e6eb1 Compare May 9, 2026 13:38
Split generated direct-call bytecode locations so undefined subroutine
diagnostics use the function-token line while successful multiline calls
still report the closing call-site line to caller(). Also guard CORE wrapper
preflight resolution from looping on unresolved stubs.

Generated with Codex (https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit 82a0974 into master May 9, 2026
2 checks passed
@fglock fglock deleted the fix/uav-pilot-jcpan branch May 9, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant