-
公开(公告)号:US10684834B2
公开(公告)日:2020-06-16
申请号:US16360951
申请日:2019-03-21
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Hongyuan Liu , Cho-Li Wang , KingTin Lam , Huanxin Lin , Bin Zhang , Junchao Ma
Abstract: Embodiments of the present invention disclose a method and an apparatus for detecting inter-instruction data dependency. The method comprises: comparing a thread number corresponding to a historical access operation with a thread number corresponding to a write access operation, if the thread number corresponding to the write access operation is less than the thread number corresponding to the historical access operation, which indicates existence of data dependency for a to-be-detected instruction, terminating the detection; or comparing a thread number corresponding to a historical write access operation with a thread number corresponding to a read access operation, if the thread number corresponding to the read access operation is less than the thread number corresponding to the historical write access operation, which indicates existence of data dependency for the to-be-detected instruction, terminating the detection.
-
公开(公告)号:US11934422B2
公开(公告)日:2024-03-19
申请号:US17008166
申请日:2020-08-31
Applicant: Huawei Technologies Co., Ltd.
Inventor: Alexander Vladimirovich Slesarenko , Junchao Ma
IPC: G06F16/25 , G06F9/455 , G06F9/54 , G06F16/2455 , G06F16/28
CPC classification number: G06F16/256 , G06F9/4552 , G06F9/545 , G06F9/547 , G06F16/24552 , G06F16/289
Abstract: An apparatus for extracting data from a database for object initialization, and apparatus for writing object data to a database, and corresponding methods are provided. A data extraction kernel on the native-side reads database data from a plurality of locations in the database using a database interface and writes the database data to a buffer using a native-side buffer API (application programming interface). An object initialization kernel on the virtual machine (VM-) side reads the database data from the buffer using a native-side buffer API and initializes a plurality of objects. Information indicating one of the plural memory regions in the buffer where the data extraction kernel writes the database data is known to the native-side buffer API and to the VM-side buffer API. According to the application, fast and memory efficient data exchange between a native side and VM side is achieved.
-