-
公开(公告)号:US10795651B2
公开(公告)日:2020-10-06
申请号:US16396289
申请日:2019-04-26
Applicant: Huawei Technologies Co., Ltd.
Inventor: Haichuan Wang , Brice Adam Dobry , Shiqiang Cui , Bo Qi
Abstract: Compiling source code objects to improve efficiency of compiling is described herein. The compiling includes determining, by a compiler, an object type of a to-be-compiled object in source code. A counter is set for the to-be-compiled object. When the object type of the to-be-compiled object is an object type that can be operated by only one thread at one moment, the compiler sets a counter counting rule for the counter of the to-be-compiled object.
-
公开(公告)号:US20190205113A1
公开(公告)日:2019-07-04
申请号:US15861132
申请日:2018-01-03
Applicant: Huawei Technologies Co., Ltd.
Inventor: Marcus Theodore Chernenko Karpoff , Jose Nelson Amaral , Kai-Ting Amy Wang , Brice Adam Dobry
Abstract: An embodiment method for retiring a dynamically updatable function includes receiving, by a collector-thread, a registration of the function, wherein the registration indicates to the collector-thread addresses of memory locations for counters that count a number of calls currently being made to a previous version of the function by a plurality of execution threads; reading, by the collector-thread, values of the counters; and when the values of all the counters are zero, deleting, by the collector-thread, the function from a storage medium on a device previously executing the previous version of the function.
-
公开(公告)号:US11281441B2
公开(公告)日:2022-03-22
申请号:US17027305
申请日:2020-09-21
Applicant: Huawei Technologies Co., Ltd.
Inventor: Brice Adam Dobry , Haichuan Wang , Shiqiang Cui , Bo Qi
Abstract: Compiling source code objects to improve efficiency of compiling is described herein. The compiling includes determining, by a compiler, an object type of a to-be-compiled object in source code. A counter is set for the to-be-compiled object. When the object type of the to-be-compiled object is an object type that can be operated by only one thread at one moment, the compiler sets a counter counting rule for the counter of the to-be-compiled object.
-
公开(公告)号:US10564955B2
公开(公告)日:2020-02-18
申请号:US15861132
申请日:2018-01-03
Applicant: Huawei Technologies Co., Ltd.
Inventor: Marcus Theodore Chernenko Karpoff , Jose Nelson Amaral , Kai-Ting Amy Wang , Brice Adam Dobry
Abstract: An embodiment method for retiring a dynamically updatable function includes receiving, by a collector-thread, a registration of the function, wherein the registration indicates to the collector-thread addresses of memory locations for counters that count a number of calls currently being made to a previous version of the function by a plurality of execution threads; reading, by the collector-thread, values of the counters; and when the values of all the counters are zero, deleting, by the collector-thread, the function from a storage medium on a device previously executing the previous version of the function.
-
-
-