mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Stop gap solution for cython functions breaking in memory monitor (#7687)
This commit is contained in:
parent
a7a5d172b1
commit
89d959fd6a
1 changed files with 6 additions and 1 deletions
|
@ -569,7 +569,12 @@ cdef void get_py_stack(c_string* stack_out) nogil:
|
|||
"""
|
||||
|
||||
with gil:
|
||||
frame = inspect.currentframe()
|
||||
try:
|
||||
frame = inspect.currentframe()
|
||||
except ValueError: # overhead of exception handling is about 20us
|
||||
stack_out[0] = "".encode("ascii")
|
||||
return
|
||||
|
||||
msg = ""
|
||||
while frame:
|
||||
filename = frame.f_code.co_filename
|
||||
|
|
Loading…
Add table
Reference in a new issue