Page MenuHomePhabricator

Remove reentrant code
ClosedPublic

Authored by joshuaspence on May 25 2015, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 9:06 AM
Unknown Object (File)
Oct 16 2024, 11:22 PM
Unknown Object (File)
Oct 9 2024, 8:59 AM
Unknown Object (File)
Oct 8 2024, 2:16 PM
Unknown Object (File)
Oct 1 2024, 11:29 AM
Unknown Object (File)
Sep 25 2024, 1:20 PM
Unknown Object (File)
Sep 15 2024, 3:31 PM
Unknown Object (File)
Sep 5 2024, 1:23 PM
Subscribers

Details

Summary

Ref T7604. Remove the reenter_if_this_is_arcanist_or_libphutil function. Some discussion in D12945.

Test Plan

Ran ./bin/arc --trace help and saw things happen as expected.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Remove reentrant code.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

ARC_PHUTIL_PATH can likely be removed from whatever references it now, too, I think?

This revision is now accepted and ready to land.May 25 2015, 12:19 PM

I suppose it doesn't necessarily hurt anything to leave it.

Yeah I think we should just leave it.

I can't manage to reproduce it now, but I somehow got this error:

Usage Exception: You are trying to run one copy of Arcanist on another copy of Arcanist. This operation is not supported. To execute Arcanist operations against this working copy, run `./bin/arc` (from the current working copy) not some other copy of 'arc'

Assuming you were actually doing that (i.e., the error is not a false positive), I think that's fine/desirable (it addresses the confusing case above, and shouldn't ever impact any normal users).

Yeah it wasn't a false positive... I just thought it had to do with the reentrant stuff.

This revision was automatically updated to reflect the committed changes.