Page MenuHomePhabricator

Remove reentrant code
ClosedPublic

Authored by joshuaspence on May 25 2015, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 8:38 AM
Unknown Object (File)
Fri, Nov 22, 7:57 AM
Unknown Object (File)
Fri, Nov 22, 4:34 AM
Unknown Object (File)
Thu, Nov 21, 10:54 PM
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
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
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6257
Build 6279: [Placeholder Plan] Wait for 30 Seconds

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.