Page MenuHomePhabricator

Remove reentrant code
ClosedPublic

Authored by joshuaspence on May 25 2015, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 7:43 PM
Unknown Object (File)
Thu, Apr 11, 8:47 AM
Unknown Object (File)
Thu, Apr 11, 8:47 AM
Unknown Object (File)
Sun, Mar 31, 8:32 PM
Unknown Object (File)
Fri, Mar 22, 6:32 PM
Unknown Object (File)
Fri, Mar 22, 1:26 AM
Unknown Object (File)
Feb 14 2024, 11:48 PM
Unknown Object (File)
Jan 6 2024, 6:31 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.