)]}'
{"oslo_service/service.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"def5784fad07c051423781e19d873b717e44e4f8","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        # new thread spawned."},{"line_number":188,"context_line":"        if self.__force_interrupt_on_signal:"},{"line_number":189,"context_line":"            try:"},{"line_number":190,"context_line":"                interrupted_frame \u003d inspect.stack(context\u003d0)[1]"},{"line_number":191,"context_line":"            except IndexError:"},{"line_number":192,"context_line":"                pass"},{"line_number":193,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_853abc95","line":190,"updated":"2018-05-08 16:29:36.000000000","message":"Holding references to frames in local variables can introduce memory cycles and prevent garbage collection. A try:finally with a del should help avoid that here.","commit_id":"cad75e4e139f734a5138d37ceafa6be169ff4e47"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"cf04f4f405ae174b4c40c7433aa5bc293847926d","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        # new thread spawned."},{"line_number":188,"context_line":"        if self.__force_interrupt_on_signal:"},{"line_number":189,"context_line":"            try:"},{"line_number":190,"context_line":"                interrupted_frame \u003d inspect.stack(context\u003d0)[1]"},{"line_number":191,"context_line":"            except IndexError:"},{"line_number":192,"context_line":"                pass"},{"line_number":193,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_979511e7","line":190,"in_reply_to":"5f7c97a3_853abc95","updated":"2018-05-08 18:22:05.000000000","message":"I thought about that, and definitely if you did e.g.:\n\n  stack \u003d inspect.stack()\n  interrupted_frame \u003d stack[1]\n\nthen you would have a cycle where the current frame references itself. But I believe that by not storing a reference to the whole stack in a local variable, and only keeping a reference to the _previous_ stack frame (which I assume can\u0027t reference the current one unless time starts to run backwards, in which case we have bigger problems), the possibility of a cycle is eliminated. Always happy to learn something new about Python if I\u0027m wrong though!\n\nReasoning about exception tracebacks (especially with chained exceptions in Python 3) is mind-bending enough that it\u0027s probably better to be safe than sorry as a rule, but I think this case is more straightforward than those ones tend to be.","commit_id":"cad75e4e139f734a5138d37ceafa6be169ff4e47"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"05a88d3ce7af8ca19bb2f7880748848bac2e7ea4","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        # new thread spawned."},{"line_number":188,"context_line":"        if self.__force_interrupt_on_signal:"},{"line_number":189,"context_line":"            try:"},{"line_number":190,"context_line":"                interrupted_frame \u003d inspect.stack(context\u003d0)[1]"},{"line_number":191,"context_line":"            except IndexError:"},{"line_number":192,"context_line":"                pass"},{"line_number":193,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_8ac72413","line":190,"in_reply_to":"5f7c97a3_979511e7","updated":"2018-05-08 18:55:47.000000000","message":"OK, if you\u0027re confident of the way those data structures interact (and I think you\u0027re probably right), we should be safe to go.","commit_id":"cad75e4e139f734a5138d37ceafa6be169ff4e47"}]}
