Memory processing method, device, electronic device and storage medium
By supporting automatic reference counting and tracking recovery algorithms in the same programming language, the problem of high learning costs caused by garbage collection algorithms in different programming languages is solved, and the flexible adaptability and efficiency of memory processing methods are achieved.
Patent Information
- Application Number
- CN202111481083.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-06
AI Technical Summary
The garbage collection algorithms of different programming languages in the prior art result in high learning costs for memory recycling processing and are unable to adapt to changing memory performance requirements scenarios.
Provides a memory processing method that supports both automatic reference counting-based recycling algorithms and tracking-based recycling algorithms in the same programming language. It uses reference counting to count the number of references to memory blocks and realizes the integration between the two algorithms. Switch between each other.
It reduces the learning cost for users to design memory recycling algorithms, adapts to the needs of different memory processing scenarios, and avoids repeated design of memory recycling algorithms.
Smart Images

Figure CN114296733B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a memory processing method, device, electronic device and storage medium. Background Art
[0002] Garbage collection (GC) is an automatic memory handling mechanism in programming languages. When the memory space occupied by an application is no longer accessed, the application can release the occupied memory space through a garbage collection algorithm.
[0003] In the related art, memory space recycling includes garbage collection algorithms based on automatic reference counting (ARC) and garbage collection algorithms based on tracing. ARC-based garbage collection algorithms and tracing-based garbage collection algorithms are applied to different programming languages. For example, in Java programs, tracing-based garbage collection algorithms are usually used to release occupied memory, while ARC-based garbage collection algorithms are usually used to release occupied memory in Swift programs. Therefore, these garbage collection algorithms are applied to different scenarios, which increases the learning cost for users to design memory recycling algorithms. Summary of the invention
[0004] The present disclosure provides a memory processing method, device, electronic device and storage medium to at least solve the problem of high learning cost in designing memory recycling algorithms using different programming languages in related technologies. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a memory processing method is provided, including:
[0006] In response to a memory recycling algorithm acquisition request, determining that the current memory recycling algorithm is a recycling algorithm based on automatic reference counting or a recycling algorithm based on tracking; the recycling algorithm based on automatic reference counting and the recycling algorithm based on tracking are designed using the same programming language, the recycling algorithm based on automatic reference counting implements recycling processing of memory blocks through reference counting; the recycling algorithm based on tracking implements recycling processing of memory blocks by determining the occupation status of each memory block;
[0007] In response to a memory reclamation algorithm switching request, switching a current memory reclamation algorithm to another reclamation algorithm of an automatic reference counting-based reclamation algorithm or a tracing-based reclamation algorithm;
[0008] Process the occupied memory blocks according to the switched memory recycling algorithm.
[0009] Optionally, when the switched memory recycling algorithm is a recycling algorithm based on automatic reference counting, the recycling algorithm based on automatic reference counting includes a first reference indication, and the first reference indication is used to indicate the number of references of the target memory block; processing the occupied memory block according to the switched memory recycling algorithm includes:
[0010] When a first reference to a target memory block is added each time, the number of references indicated by the first reference is increased by 1; the target memory block is a memory object created during program execution and is used to store program operation data;
[0011] Each time a first reference to a target memory block is released, the number of references to the first reference indication is reduced by 1;
[0012] When the number of references indicated by the first reference is 0, the memory occupied by the target memory block is released.
[0013] Optionally, the recycling algorithm based on automatic reference counting further includes a second reference indication, where the second reference indication is used to indicate an address of a referenced target memory block; and processing the occupied memory block according to the switched memory recycling algorithm includes:
[0014] When a second reference to the target memory block is added each time, the number of references indicated by the second reference is increased by 1;
[0015] Each time a second reference to the target memory block is released, the number of references indicated by the second reference is reduced by 1;
[0016] When the number of references of the second reference indication is 0, the memory occupied by the address memory block corresponding to the second reference indication is released; the address memory block is used to store the memory block address pointed to by the second reference indication.
[0017] Optionally, when the switched memory recycling algorithm is a tracking-based recycling algorithm, the occupied memory blocks are processed according to the switched memory recycling algorithm, including:
[0018] Traverse all occupied memory blocks;
[0019] In the case where the first target memory block survives, marking the first target memory block; the first target memory block is any memory block in all occupied memory blocks;
[0020] After all occupied memory blocks are traversed, the memory occupied by the unmarked second target memory block is released; the second target memory block is an unmarked memory block among all occupied memory blocks.
[0021] Optionally, when the current memory recycling algorithm is a recycling algorithm based on tracking and the memory recycling algorithm after switching is a recycling algorithm based on automatic reference counting, in response to a memory recycling algorithm switching request, switching the current memory recycling algorithm to another recycling algorithm of the recycling algorithm based on automatic reference counting or the recycling algorithm based on tracking includes:
[0022] When there are no circular references between all occupied memory blocks, the tracking-based recycling algorithm is switched to an automatic reference counting-based recycling algorithm.
[0023] Optionally, the memory processing method also includes:
[0024] In the case where a circular reference exists between all occupied memory blocks, a warning message is determined; the warning message is used to prompt that a risk of memory leak exists in the target memory block.
[0025] Optionally, the memory processing method also includes:
[0026] In response to a manual memory handling request, while processing the occupied memory blocks according to the automatic reference counting-based recycling algorithm or the tracking-based recycling algorithm, other occupied memory blocks are processed according to the manual memory handling algorithm.
[0027] According to a second aspect of an embodiment of the present disclosure, a memory processing device is provided, including:
[0028] An algorithm determination unit is used to respond to a memory recycling algorithm acquisition request and determine that the current memory recycling algorithm is a recycling algorithm based on automatic reference counting or a recycling algorithm based on tracking; the recycling algorithm based on automatic reference counting and the recycling algorithm based on tracking are designed using the same programming language, the recycling algorithm based on automatic reference counting realizes recycling processing of memory blocks through reference counting; the recycling algorithm based on tracking realizes recycling processing of memory blocks by determining the occupation status of each memory block;
[0029] An algorithm switching unit, configured to switch a current memory recycling algorithm to another recycling algorithm of an automatic reference counting-based recycling algorithm or a tracing-based recycling algorithm in response to a memory recycling algorithm switching request;
[0030] The memory processing unit is used to process the occupied memory blocks according to the switched memory recycling algorithm.
[0031] Optionally, when the switched memory recycling algorithm is a recycling algorithm based on automatic reference counting, the recycling algorithm based on automatic reference counting includes a first reference indication, and the first reference indication is used to indicate the number of references of the target memory block; the memory processing unit is specifically used to:
[0032] When a first reference to a target memory block is added each time, the number of references indicated by the first reference is increased by 1; the target memory block is a memory object created during program execution and is used to store program operation data;
[0033] Each time a first reference to a target memory block is released, the number of references to the first reference indication is reduced by 1;
[0034] When the number of references indicated by the first reference is 0, the memory occupied by the target memory block is released.
[0035] Optionally, the recycling algorithm based on automatic reference counting further includes a second reference indication, where the second reference indication is used to indicate the address of the referenced target memory block; and a memory processing unit, specifically used to:
[0036] When a second reference to the target memory block is added each time, the number of references indicated by the second reference is increased by 1;
[0037] Each time a second reference to the target memory block is released, the number of references indicated by the second reference is reduced by 1;
[0038] When the number of references of the second reference indication is 0, the memory occupied by the address memory block corresponding to the second reference indication is released; the address memory block is used to store the memory block address pointed to by the second reference indication.
[0039] Optionally, when the switched memory recycling algorithm is a tracing-based recycling algorithm, the memory processing unit is specifically used to:
[0040] Traverse all occupied memory blocks;
[0041] In the case where the first target memory block survives, marking the first target memory block; the first target memory block is any memory block in all occupied memory blocks;
[0042] After all occupied memory blocks are traversed, the memory occupied by the unmarked second target memory block is released; the second target memory block is an unmarked memory block among all occupied memory blocks.
[0043] Optionally, when the current memory recycling algorithm is a recycling algorithm based on tracking and the memory recycling algorithm after switching is a recycling algorithm based on automatic reference counting, the algorithm switching unit is specifically used to:
[0044] When there are no circular references between all occupied memory blocks, the tracking-based recycling algorithm is switched to an automatic reference counting-based recycling algorithm.
[0045] Optionally, the memory processing unit is further used to determine an alarm message when there is a circular reference between all occupied memory blocks; the alarm message is used to prompt that there is a risk of memory leak in the target memory block.
[0046] Optionally, the memory processing unit is also used to respond to a manual memory processing request, and while processing the occupied memory blocks according to the automatic reference counting-based recycling algorithm or the tracking-based recycling algorithm, process other occupied memory blocks according to the manual memory processing algorithm.
[0047] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the memory processing method provided in the first aspect.
[0048] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, the computer-readable storage medium comprising instructions; when the instructions are executed by a processor of an electronic device, the electronic device executes the memory processing method provided in the first aspect.
[0049] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. The computer program product includes instructions. When the instructions are executed on a processor of an electronic device, the electronic device executes the memory processing method provided in the first aspect.
[0050] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the memory processing method provided by the present disclosure enables the same programming language to have both a recycling algorithm based on automatic reference counting and a recycling algorithm based on tracking, so that the same programming language can be used to write in different memory performance requirement scenarios; compared with the recycling algorithm based on automatic reference counting in the prior art, the recycling algorithm based on automatic reference counting provided by the present disclosure includes storing reference counts to achieve reference count statistics for memory blocks through syntax design, type design and data structure design of reference pointers, avoiding reference statistics for memory blocks through pointers at runtime, and thus achieving mutual switching between the two memory recycling algorithms, so that the memory processing method provided by the present disclosure can be applied to different memory processing scenarios, without the need for users to learn multiple programming languages, thereby reducing the learning cost of users designing memory recycling algorithms.
[0051] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0053] Figure 1 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment.
[0054] Figure 2 This is one of the flowcharts of a memory processing method according to an exemplary embodiment.
[0055] Figure 3 This is a second flowchart of a memory processing method according to an exemplary embodiment.
[0056] Figure 4 The figure is a schematic diagram showing the structure of a target memory block according to an exemplary embodiment.
[0057] Figure 5 The diagram is a schematic diagram showing a direction between a target memory block and an address memory block according to an exemplary embodiment.
[0058] Figure 6 This is a third flowchart of a memory processing method according to an exemplary embodiment.
[0059] Figure 7 This is a fourth flowchart of a memory processing method according to an exemplary embodiment.
[0060] Figure 8 This is a fifth flowchart of a memory processing method according to an exemplary embodiment.
[0061] Fig. 9 This is the sixth flowchart of a memory processing method according to an exemplary embodiment.
[0062] Fig.10 The figure is a schematic diagram showing the structure of a memory processing device according to an exemplary embodiment.
[0063] Fig.11 is a schematic structural diagram of yet another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0064] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0065] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0066] Memory is one of the important components of a computer, also known as internal memory and main memory. It is used to temporarily store the calculation data in the central processing unit (CPU) and the data exchanged with external memory such as the hard disk. All programs in the computer are run in memory, and the strength of memory performance affects the overall performance of the computer. Programming languages support dynamic allocation of memory, that is, the program can allocate or release objects whose size cannot be determined at compile time (the object refers to the memory space allocated for program operation) when running. Here, the memory allocated for program operation is located in the heap memory. However, due to the limited storage space of memory, it is necessary to process memory calls in real time during program operation to avoid program operation errors caused by the full occupation of memory space.
[0067] In the related art, memory processing methods include manual processing and automatic processing. Among them, manual memory processing mainly relies on C / C++ language implementation, applying for memory through new function or malloc function, and releasing occupied memory through free function or delete function. This memory processing method requires programmers to process in real time.
[0068] The automatic memory handling method uses the garbage collection algorithm to automatically allocate and release memory without the need for manual intervention by programmers. Automatic memory handling methods include recycling algorithms based on reference counting and recycling algorithms based on tracking. The recycling algorithm based on reference counting is mainly used in scenarios with limited hardware resources and low concurrency, such as mobile terminals and embedded devices. The recycling algorithm based on tracking is mainly used in scenarios with sufficient hardware resources and high concurrency, such as the server side. The Swift language based on the recycling algorithm based on reference counting and the Java language based on the recycling algorithm based on tracking can only use a single recycling algorithm in different scenarios and cannot adapt to changing scenarios. Since these recycling algorithms are adopted by different programming languages, programmers need to learn multiple programming languages, which increases the learning cost.
[0069] In view of the above problems, an embodiment of the present disclosure provides a memory processing method, so that the same programming language has both a recycling algorithm based on automatic reference counting and a recycling algorithm based on tracking, and thus the same programming language can be used to write in different memory performance requirement scenarios; compared with the recycling algorithm based on automatic reference counting in the prior art, the recycling algorithm based on automatic reference counting provided by the present disclosure includes storing reference counts to achieve reference count statistics of memory blocks through syntax design, type design and data structure design of reference pointers, avoiding reference statistics of memory blocks through pointers at runtime, and thus achieving mutual switching between the two memory recycling algorithms, so that the memory processing method provided by the present disclosure can be applied to different memory processing scenarios, without the need for users to learn multiple programming languages, thereby reducing the learning cost of users designing memory recycling algorithms.
[0070] Figure 1 The electronic device 01 includes a processor 011 and a memory 012.
[0071] The processor 011 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 011 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors.
[0072] The memory 012 may include one or more computer-readable storage media, which may be non-transitory. The memory 012 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 012 is used to store at least one instruction, which is used to be executed by the processor 011 to implement the memory processing method provided by the embodiment of the method of the present disclosure.
[0073] In some embodiments, the electronic device 01 may further optionally include: a peripheral device interface 013 and at least one peripheral device. The processor 011, the memory 012 and the peripheral device interface 013 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 013 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 014, a display screen 015, a camera assembly 016, an audio circuit 017, a positioning assembly 018 and a power supply 019.
[0074] The peripheral device interface 013 may be used to connect at least one peripheral device related to input / output (I / O) to the processor 011 and the memory 012. In some embodiments, the processor 011, the memory 012, and the peripheral device interface 013 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 011, the memory 012, and the peripheral device interface 013 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0075] The radio frequency circuit 014 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 014 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 014 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 014 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 014 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a wireless fidelity (Wi-Fi) network. In some embodiments, the radio frequency circuit 014 may also include circuits related to near field communication (NFC), which is not limited in the present disclosure.
[0076] The display screen 015 is used to display a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 015 is a touch display screen, the display screen 015 also has the ability to collect touch signals on the surface or above the surface of the display screen 015. The touch signal can be input to the processor 011 as a control signal for processing. At this time, the display screen 015 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 015 can be one, and the front panel of the electronic device 01 is set; the display screen 015 can be made of materials such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
[0077] The camera assembly 016 is used to collect images or videos. Optionally, the camera assembly 016 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal device, and the rear camera is set on the back of the terminal device. The audio circuit 017 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 011 for processing, or input them into the radio frequency circuit 014 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there can be multiple microphones, which are respectively arranged at different parts of the electronic device 01. The microphone can also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 011 or the radio frequency circuit 014 into sound waves. The speaker can be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into a sound wave audible to humans, but also convert the electrical signal into a sound wave that cannot be heard by humans for purposes such as ranging. In some embodiments, the audio circuit 017 can also include a headphone jack.
[0078] The positioning component 018 is used to locate the current geographic location of the electronic device 01 to implement navigation or location based services (LBS). The positioning component 018 can be a positioning component based on the US global positioning system (GPS), China's Beidou system, Russia's Grenas system, or the European Union's Galileo system.
[0079] The power supply 019 is used to power various components in the electronic device 01. The power supply 019 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 019 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0080] In some embodiments, the electronic device 01 further includes one or more sensors 0110. The one or more sensors 0110 include, but are not limited to: an acceleration sensor, a gyroscope sensor, a pressure sensor, a fingerprint sensor, an optical sensor, and a proximity sensor.
[0081] The acceleration sensor can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the electronic device 01. The gyroscope sensor can detect the body direction and rotation angle of the electronic device 01, and the gyroscope sensor can cooperate with the acceleration sensor to collect the user's 3D actions on the electronic device 01. The pressure sensor can be set on the side frame of the electronic device 01 and / or the lower layer of the display screen 015. When the pressure sensor is set on the side frame of the electronic device 01, the user's holding signal of the electronic device 01 can be detected. The fingerprint sensor is used to collect the user's fingerprint. The optical sensor is used to collect the ambient light intensity. The proximity sensor, also known as the distance sensor, is usually set on the front panel of the electronic device 01. The proximity sensor is used to collect the distance between the user and the front of the electronic device 01.
[0082] Figure 2 is a flowchart of a memory processing method according to an exemplary embodiment. Figure 2 As shown, the memory processing method is applied to an electronic device, and the method includes the following S11 to S13.
[0083] S11. In response to a memory reclamation algorithm acquisition request, the electronic device determines that the current memory reclamation algorithm is a reclamation algorithm based on automatic reference counting or a reclamation algorithm based on tracking.
[0084] Among them, the recycling algorithm based on automatic reference counting and the recycling algorithm based on tracking are designed using the same programming language. The recycling algorithm based on automatic reference counting realizes the recycling of memory blocks through reference counting; the recycling algorithm based on tracking realizes the recycling of memory blocks by determining the occupancy status of each memory block.
[0085] As a possible implementation method, the above-mentioned current memory recycling algorithm includes a recycling algorithm based on automatic reference counting or a recycling algorithm based on tracking. According to different memory recycling scenarios, the user can select the current memory recycling algorithm suitable for the target scenario.
[0086] For example, when the target scenario is a scenario with limited memory space, the current memory recycling algorithm determined here is a recycling algorithm based on automatic reference counting; and when the target scenario is a scenario with sufficient memory space, the current memory recycling algorithm may be a recycling algorithm based on tracking.
[0087] It should be noted that the above-mentioned memory recovery algorithm request is determined by the user according to needs. For example, when the current memory recovery algorithm is a recovery algorithm based on automatic reference counting, the memory recovery algorithm request may include the programming language: -use_arc_gc; and when the memory recovery algorithm request includes the programming language: -use_tracing_gc, it can be determined that the current memory recovery algorithm is a recovery algorithm based on tracing.
[0088] S12. The electronic device switches the current memory recycling algorithm to another recycling algorithm of the recycling algorithm based on automatic reference counting or the recycling algorithm based on tracking in response to the memory recycling algorithm switching request.
[0089] As a possible implementation method, a memory recovery algorithm switching request refers to an indication message manually determined by a user. For example, when the current memory recovery algorithm is a recovery algorithm based on automatic reference counting, the memory recovery algorithm switching request may include the programming language: -use_tracing_gc; at this time, in response to the memory recovery algorithm switching request, the recovery algorithm based on automatic reference counting can be switched to a recovery algorithm based on tracing.
[0090] When the current memory recovery algorithm is a recovery algorithm based on tracking, the memory recovery algorithm switching request may include the program language: -use_arc_gc; at this time, in response to the memory recovery algorithm switching request, the recovery algorithm based on tracking may be switched to a recovery algorithm based on automatic reference counting.
[0091] Optionally, when the current memory recycling algorithm is a recycling algorithm based on automatic reference counting, the electronic device processes the occupied memory blocks according to the recycling algorithm based on automatic reference counting.
[0092] As a possible implementation, when releasing the memory of the occupied memory blocks through the recycling algorithm based on automatic reference counting, memory processing can be implemented according to the number of times these memory blocks are referenced. For example, when the number of times the occupied memory block is referenced is greater than 0, the memory occupied by the memory block can be saved; when the number of times the occupied memory block is referenced is equal to 0, the memory occupied by the memory block can be released.
[0093] Optionally, when the program operation scenario changes again, the memory recovery algorithm can be switched from the tracing-based recovery algorithm to the automatic reference counting-based recovery algorithm. By switching between the tracing-based recovery algorithm and the automatic reference counting-based recovery algorithm, the memory processing method disclosed in the present invention can be applied to more scenarios, meet the user's memory recovery needs, and avoid repeated design of memory recovery algorithms.
[0094] S13. The electronic device processes the occupied memory block according to the switched memory recycling algorithm.
[0095] Specifically, after the current memory recycling algorithm is switched to another recycling algorithm based on automatic reference counting or a recycling algorithm based on tracking, the electronic device can process the occupied memory blocks according to the switched memory recycling algorithm.
[0096] As a possible implementation, when the memory recycling algorithm after switching is a tracking-based recycling algorithm, the tracking-based recycling algorithm includes a mark-sweep algorithm, a copy algorithm, and a mark-compression algorithm. The specific implementation process of the electronic device processing the occupied memory block according to the tracking-based recycling algorithm can refer to the prior art and will not be repeated here. For example, the memory release of the occupied memory block can be achieved through the mark-sweep algorithm in the tracking-based recycling algorithm.
[0097] The technical solution provided by the above-mentioned embodiments has at least the following beneficial effects: since the present disclosure designs a method that supports both a recycling algorithm based on automatic reference counting and a recycling algorithm based on tracking through the same programming language, compared with the recycling algorithm based on automatic reference counting in the prior art, the recycling algorithm based on automatic reference counting provided by the present disclosure stores reference counts to implement reference count statistics for memory blocks through syntax design, type design and data structure design of reference pointers, thereby avoiding implementing reference statistics for memory blocks through pointers. Therefore, mutual switching between the two memory recycling algorithms can be implemented, so that the memory processing method provided by the present disclosure can be applied to different memory processing scenarios, without the need for users to learn multiple programming languages, thereby reducing the learning cost of users designing memory recycling algorithms.
[0098] In an practicable manner, when the switched memory recycling algorithm is a recycling algorithm based on automatic reference counting, the recycling algorithm based on automatic reference counting includes a first reference indicator, and the first reference indicator is used to indicate the number of times the target memory block is referenced by the user. Figure 2 ,like Figure 3 As shown, the above step S13 includes S131-S133.
[0099] S131. When a first reference to a target memory block is added each time, the electronic device increases the number of references indicated by the first reference by 1.
[0100] The target memory block is a memory object created during program execution and is used to store the program's computational data.
[0101] S132. Each time a first reference to a target memory block is released, the electronic device reduces the number of references to the first reference indication by 1.
[0102] S133: When the number of references indicated by the first reference is 0, the electronic device releases the memory occupied by the target memory block.
[0103] As a possible implementation, the memory recycling process of the recycling algorithm based on automatic reference counting provided by the present disclosure can refer to the prior art.
[0104] Exemplarily, in the existing recycling algorithm based on automatic reference counting, strong pointers and weak pointers are introduced. Strong pointers can share the ownership of the target memory block with other strong pointers, while weak pointers are only used to point to the address of the target memory block, but do not have the ownership of the target memory block. When processing memory through a recycling algorithm based on automatic reference counting, a memory block can be allocated to the program through the new(T) function, where T is the type of the requested memory block, and the return value of the function points to the starting address of the requested target memory block. For the newly created target memory block, the reference count of the memory block needs to be initialized so that its reference count is 0.
[0105] The reference of the target memory block can be determined from the structure in the header of the target memory block. If the target memory block is a HeapObject instance, the compiler compiles the reference of the target memory block using the HeapObject structure, which includes 64 bits and is embedded in the header of the target memory block.
[0106] The memory structure of the target memory block can be as follows Figure 4 As shown, bits 0-30 of the structure are temporarily unused; bit 31 is the first flag bit, which is used to indicate whether the target memory block has started to be destructed. If the target memory block has started to be destructed, the destructor of the target memory block is called to determine whether it occupies the memory; bits 32-62 are used to indicate the strong reference count; bit 63 is the second flag bit, which is used to indicate whether there is a sidetable table, which is used to store the address referenced by the weak pointer. Of course, the HeapObject structure here is only exemplary and is not limited here.
[0107] The strong pointer is used to indicate the reference to the target memory block. When there is a circular reference between the occupied memory blocks, a weak pointer is introduced. At the same time as the weak pointer is introduced, a sidetable is also introduced. The sidetable can occupy a separate memory block, including the strong reference count, weak reference count and pointer to HeapObject of the target memory block.
[0108] When there are strong pointers and weak pointers in the target memory block, the strong reference count in the HeapObject instance is converted to a pointer to the sidetable table; Figure 5 As shown, the pointing relationship between HeapObject and sidetable is shown.
[0109] At this time, when the strong reference count is 0 and the weak reference count is not 0, the memory occupied by HeapObject can be released; when the weak reference count is 0, the memory occupied by the sidetable table can be released.
[0110] The above-mentioned strong reference count refers to the strong pointer reference count pointing to the target memory block, and the weak reference count refers to the weak pointer reference count pointing to the target memory block.
[0111] Compared with the implementation logic of the recycling algorithm based on automatic reference counting in the above-mentioned prior art, the present disclosure replaces the strong pointer with the first reference indicator and the weak pointer with the second reference indicator, wherein the function of the first reference indicator is the same as that of the strong pointer, and the function of the second reference indicator is the same as that of the weak pointer. The present disclosure can support both the recycling algorithm based on automatic reference counting and the recycling algorithm based on tracking through the same programming language.
[0112] When using a recycling algorithm based on automatic reference counting, you can use the programming language: StrongPointerType = "*" Type to limit the first reference indication, and use the programming language: WeakPointerType = "weak" "*" Type to limit the second reference indication, so that the function of the first reference indication is the same as that of a strong pointer, and the function of the second reference indication is the same as that of a weak pointer.
[0113] Therefore, referring to the reference of the strong pointer, when a first reference is added to the target memory block, the number of references indicated by the first reference is increased by 1; and when a first reference to the target memory block is released, the number of references indicated by the first reference can be reduced by 1. When the number of references indicated by the first application is reduced to 0, it means that the program no longer uses the memory occupied by the target memory block, and the memory occupied by the target memory block can be released at this time.
[0114] It should be noted that the above-mentioned target memory block may be a heap object for storing the operation data of the program.
[0115] The technical solution provided by the above embodiment has at least the following beneficial effects: the occupied memory block can be reclaimed through the first reference indication, and it is also syntactically convenient to switch to a tracing-based reclaiming algorithm to reclaim the memory.
[0116] In an practicable manner, the recycling algorithm based on automatic reference counting further includes a second reference indication, which is used to indirectly indicate the address of the referenced target memory block to solve the problem of circular reference. Figure 3 ,like Figure 6 As shown, the above step S13 also includes S134-S136.
[0117] S134. Every time a second reference to the target memory block is added, the electronic device increases the number of references indicated by the second reference by 1.
[0118] S135. Each time a second reference to the target memory block is released, the electronic device reduces the number of references to the second reference indication by 1.
[0119] S136: When the number of references of the second reference indication is 0, the electronic device releases the memory occupied by the address memory block corresponding to the second reference indication.
[0120] The address memory block is used to store the memory block address pointed to by the second reference indication.
[0121] As a possible implementation, the second reference indication here has the same function as a weak pointer. Similarly, the second reference indication can indirectly indicate the address of the referenced target memory block, and the indication information can be stored in the address memory block.
[0122] When a second reference pointing to the target memory block is added or released, the reference count of the second reference indication can be increased or decreased accordingly. When the reference count of the second reference indication is 0, the memory occupied by the address memory block corresponding to the second reference indication can be released.
[0123] The technical solution provided by the above embodiment has at least the following beneficial effects: by replacing the weak pointer with the second reference indication, circular references between occupied memory blocks can be avoided, thereby avoiding the problem of memory leakage.
[0124] In one practicable manner, combining Figure 2 ,like Figure 7 As shown, when the switched memory recycling algorithm is a tracing-based recycling algorithm, the above step S13 includes S141-S143.
[0125] S141. The electronic device traverses all occupied memory blocks.
[0126] S142: When the first target memory block survives, the electronic device marks the first target memory block.
[0127] The first target memory block is any memory block within all occupied memory blocks.
[0128] As a possible implementation method, the occupied memory blocks are object instances. When the object instances are referenced, it can be determined that the object instances are alive; and when the object instances are no longer referenced, it can be determined that the object instances are dead.
[0129] Here, all occupied memory blocks can be traversed, and the first target memory block that survives can be found from the traversal, and the first target memory block can be marked. For example, the occupied memory blocks include the first memory block, the second memory block, the third memory block, and the fourth memory block. If the first memory block and the second memory block have references, but the third memory block and the fourth memory block do not have references, then the first memory block and the second memory block can be marked.
[0130] S143: After traversing all occupied memory blocks, the electronic device releases the memory occupied by the unmarked second target memory block.
[0131] The second target memory block is an unmarked memory block among all occupied memory blocks.
[0132] As a possible implementation, after all occupied memory blocks are traversed, the first target memory blocks that survive can be marked, while the second target memory blocks that have died are not marked. At this point, it can be determined that the second target memory blocks are no longer referenced, i.e., the memory occupied by these second target memory blocks can be released.
[0133] It should be noted that the implementation process of the above S141-S143 is the implementation process of the mark-sweep algorithm. Those skilled in the art can also use the replication algorithm and the mark-compression algorithm to release the occupied memory blocks, which will not be repeated here.
[0134] The technical solution provided by the above embodiment has at least the following beneficial effects: by releasing memory blocks that are no longer referenced through a tracking-based recycling algorithm, the present disclosure can be applied to more memory recycling scenarios, facilitating memory recycling for users and improving the memory recycling experience for users.
[0135] In one practicable manner, combining Figure 2 ,like Figure 8As shown, when the current memory recycling algorithm is a recycling algorithm based on tracking and the memory recycling algorithm after switching is a recycling algorithm based on automatic reference counting, step S12 includes S201.
[0136] S201. When there is no circular reference between all occupied memory blocks, the electronic device switches the recycling algorithm based on tracking to the recycling algorithm based on automatic reference counting.
[0137] As a possible implementation method, when the recycling algorithm based on automatic reference counting releases the memory occupied by the memory block, there may be circular references between the memory blocks, resulting in memory leaks. Therefore, here we switch the recycling algorithm based on tracking to the recycling algorithm based on automatic reference counting, and need to determine whether there are circular references between the memory blocks.
[0138] The technical solution provided by the above embodiments has at least the following beneficial effects: the present disclosure provides a case of switching from a tracing-based recycling algorithm to a recycling algorithm based on automatic reference counting, and can achieve switching from a tracing-based recycling algorithm to a recycling algorithm based on automatic reference counting when there is no circular reference between memory blocks.
[0139] In one practicable manner, combining Figure 8 ,like Fig. 9 As shown, the memory processing method also includes:
[0140] S202: When there is a circular reference between all occupied memory blocks, the electronic device determines an alarm message.
[0141] The warning message is used to prompt that there is a risk of memory leak in the target memory block.
[0142] When there is no circular reference between memory blocks, the recycling algorithm based on tracking can be switched directly to the recycling algorithm based on automatic reference counting. When there is a circular reference between memory blocks, in order to avoid memory leaks, an alarm message can be determined to prompt the programmer that there is a risk of memory leak in the memory block, so that the programmer can modify the code, such as removing the code of the circular reference part.
[0143] The technical solution provided by the above embodiments has at least the following beneficial effects: the present disclosure provides a method for switching from a tracing-based recycling algorithm to an automatic reference counting-based recycling algorithm, which can avoid memory leaks that may be caused when there are circular references between memory blocks.
[0144] In an practicable manner, the current memory recycling algorithm also includes a manual memory processing algorithm. When the memory is recycled by the above-mentioned recycling algorithm based on tracking or recycling algorithm based on automatic reference counting, the memory can also be manually processed by the programmer. For example, in response to a manual memory processing request, when the occupied memory block is processed according to the recycling algorithm based on automatic reference counting or recycling algorithm based on tracking, other occupied memory blocks are processed according to the manual memory processing algorithm.
[0145] The above manual memory handling request can be a manual memory recycling program designed by the programmer. The manual memory handling algorithm can be used to process other memory blocks that are not processed by the recycling algorithm based on automatic reference counting or the recycling algorithm based on tracking. Therefore, there is no need to consider the switch from the recycling algorithm based on automatic reference counting to the manual memory handling algorithm, or the switch from the recycling algorithm based on tracking to the manual memory handling algorithm.
[0146] It should be noted that in the manual memory handling algorithm, the memory occupied by the memory block can be released through the unsafe pointer, such as using the new(T) function to create a memory block, and releasing the memory occupied by the memory block through the delete(p) function, where p is a pointer of the unsafe type. The difference is that the present disclosure actually releases the memory through a third reference indicator, and the function of the third reference indicator is the same as that of the unsafe pointer. Here, the programming language: UnsafePointerType = "unsafe" "*" Type can be used to limit the third reference indicator, so that the function of the third reference indicator is the same as that of the unsafe pointer.
[0147] The technical solution provided by the above embodiments has at least the following beneficial effects: the present disclosure can process the memory occupied by the program through a manual memory processing algorithm, can realize flexible application and release of memory, and make the memory processing method adaptable to scenarios that are sensitive to memory performance.
[0148] Fig.10 is a schematic diagram showing the structure of a memory processing device according to an exemplary embodiment. Fig.10 As shown, the memory processing device 30 includes an algorithm determination unit 301 , an algorithm switching unit 302 and a memory processing unit 303 .
[0149] The algorithm determination unit 301 is used to respond to the memory recycling algorithm acquisition request and determine that the current memory recycling algorithm is a recycling algorithm based on automatic reference counting or a recycling algorithm based on tracking; the recycling algorithm based on automatic reference counting and the recycling algorithm based on tracking are designed using the same programming language, the recycling algorithm based on automatic reference counting realizes the recycling of memory blocks through reference counting; the recycling algorithm based on tracking realizes the recycling of memory blocks by determining the occupation status of each memory block;
[0150] An algorithm switching unit 302 is used to switch the current memory recycling algorithm to another recycling algorithm of the recycling algorithm based on automatic reference counting or the recycling algorithm based on tracking in response to a memory recycling algorithm switching request;
[0151] The memory processing unit 303 is used to process the occupied memory blocks according to the switched memory recycling algorithm.
[0152] Optionally, when the switched memory recycling algorithm is a recycling algorithm based on automatic reference counting, the recycling algorithm based on automatic reference counting includes a first reference indication, and the first reference indication is used to indicate the number of references of the target memory block; the memory processing unit 303 is specifically used to:
[0153] When a first reference to a target memory block is added each time, the number of references indicated by the first reference is increased by 1; the target memory block is a memory object created during program execution and is used to store program operation data;
[0154] Each time a first reference to a target memory block is released, the number of references to the first reference indication is reduced by 1;
[0155] When the number of references indicated by the first reference is 0, the memory occupied by the target memory block is released.
[0156] Optionally, the recycling algorithm based on automatic reference counting further includes a second reference indication, where the second reference indication is used to indicate the address of the referenced target memory block; the memory processing unit 303 is specifically used to:
[0157] When a second reference to the target memory block is added each time, the number of references indicated by the second reference is increased by 1;
[0158] Each time a second reference to the target memory block is released, the number of references indicated by the second reference is reduced by 1;
[0159] When the number of references of the second reference indication is 0, the memory occupied by the address memory block corresponding to the second reference indication is released; the address memory block is used to store the memory block address pointed to by the second reference indication.
[0160] Optionally, when the switched memory recycling algorithm is a tracing-based recycling algorithm, the memory processing unit 303 is specifically configured to:
[0161] Traverse all occupied memory blocks;
[0162] In the case where the first target memory block survives, marking the first target memory block; the first target memory block is any memory block in all occupied memory blocks;
[0163] After all occupied memory blocks are traversed, the memory occupied by the unmarked second target memory block is released; the second target memory block is an unmarked memory block among all occupied memory blocks.
[0164] Optionally, when the current memory recycling algorithm is a recycling algorithm based on tracking and the memory recycling algorithm after switching is a recycling algorithm based on automatic reference counting, the algorithm switching unit 302 is specifically used to:
[0165] When there are no circular references between all occupied memory blocks, the tracking-based recycling algorithm is switched to an automatic reference counting-based recycling algorithm.
[0166] Optionally, the memory processing unit 303 is further used to determine an alarm message when there is a circular reference between all occupied memory blocks; the alarm message is used to prompt that there is a risk of memory leak in the target memory block.
[0167] Optionally, the memory processing unit 303 is also used to respond to a manual memory processing request, and when processing the occupied memory blocks according to the automatic reference counting-based recycling algorithm or the tracking-based recycling algorithm, process other occupied memory blocks according to the manual memory processing algorithm.
[0168] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0169] Fig.11 4 is a schematic diagram of the structure of an electronic device 40 provided by the present disclosure. Fig.11 The electronic device 40 may include at least one processor 401 and a memory 403 for storing instructions executable by the processor 401. The processor 401 is configured to execute instructions in the memory 403 to implement the memory processing method in the above embodiment. Fig.10 The functions implemented by the algorithm determination unit 301, the algorithm switching unit 302 and the memory processing unit 303 in the memory processing device are similar to those Fig.11 The function of processor 401 in is the same.
[0170] In addition, the electronic device 40 may further include a communication bus 402 and at least one communication interface 404 .
[0171] Processor 401 may be a GPU, a microprocessing unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the disclosed solution.
[0172] Communication bus 402 may include a pathway for transmitting information between the above-mentioned components.
[0173] The communication interface 404 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0174] The memory 403 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processing unit via a bus. The memory may also be integrated with the processing unit and be a volatile storage medium in the GPU.
[0175] The memory 403 is used to store instructions for executing the solution of the present disclosure, and the execution is controlled by the processor 401. The processor 401 is used to execute the instructions stored in the memory 403, so as to realize the functions in the method of the present disclosure.
[0176] In a specific implementation, as an embodiment, the processor 401 may include one or more GPUs, such as Fig.11 GPU0 and GPU1 in .
[0177] In a specific implementation, as an embodiment, the electronic device 40 may include multiple processors, such as Fig.11401 and processor 407 in FIG. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-GPU) processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0178] In a specific implementation, as an embodiment, the electronic device 40 may further include an output device 405 and an input device 406. The output device 405 communicates with the processor 401 and may display information in a variety of ways. For example, the output device 405 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 406 communicates with the processor 401 and may receive user input in a variety of ways. For example, the input device 406 may be a mouse, a keyboard, a touch screen device, or a sensor device.
[0179] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the electronic device 40, and may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0180] In addition, the present disclosure also provides a computer-readable storage medium, which includes instructions. When the instructions are executed by a processor of an electronic device, the electronic device executes the memory processing method provided in the above embodiment.
[0181] In addition, the present disclosure also provides a computer program product, which includes instructions. When the instructions are executed on a processor of an electronic device, the electronic device executes the memory processing method provided in the above embodiment.
[0182] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0183] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A memory processing method, characterized in that: include: In response to a memory recycling algorithm acquisition request, determine that the current memory recycling algorithm is a recycling algorithm based on automatic reference counting or a recycling algorithm based on tracking; the recycling algorithm based on automatic reference counting and the recycling algorithm based on tracking are designed using the same programming language, the recycling algorithm based on automatic reference counting implements recycling processing of memory blocks through reference counting; the recycling algorithm based on tracking implements recycling processing of memory blocks by determining the occupation status of each memory block; In response to a memory reclamation algorithm switching request, switching the current memory reclamation algorithm to another reclamation algorithm of the automatic reference counting-based reclamation algorithm or the tracing-based reclamation algorithm; Process the occupied memory blocks according to the switched memory recycling algorithm.
2. The memory processing method according to claim 1, characterized in that: When the switched memory recycling algorithm is the recycling algorithm based on automatic reference counting, the recycling algorithm based on automatic reference counting includes a first reference indication, which is used to indicate the number of references of the target memory block; the processing of the occupied memory block according to the switched memory recycling algorithm includes: In the case of each new first reference to the target memory block, the number of references indicated by the first reference is increased by 1; the target memory block is a memory object established during program execution and is used to store operation data of the program; Every time the first reference to the target memory block is released, the number of references indicated by the first reference is reduced by 1; When the number of references indicated by the first reference is 0, the memory occupied by the target memory block is released.
3. The memory processing method according to claim 2, characterized in that: The recycling algorithm based on automatic reference counting also includes a second reference indication, where the second reference indication is used to indicate the address of the referenced target memory block; and processing the occupied memory block according to the switched memory recycling algorithm includes: When a second reference to the target memory block is added each time, the number of references indicated by the second reference is increased by 1; When each time the second reference to the target memory block is released, the number of references indicated by the second reference is reduced by 1; When the number of references indicated by the second reference is 0, the memory occupied by the address memory block corresponding to the second reference indication is released; the address memory block is used to store the memory block address pointed to by the second reference indication.
4. The memory processing method according to claim 3, characterized in that: When the switched memory recycling algorithm is the tracking-based recycling algorithm, processing the occupied memory blocks according to the switched memory recycling algorithm includes: Traversing all the occupied memory blocks; In the case where the first target memory block survives, marking the first target memory block; the first target memory block is any memory block in all the occupied memory blocks; After traversal of all the occupied memory blocks is completed, the memory occupied by the unmarked second target memory block is released; the second target memory block is an unmarked memory block among all the occupied memory blocks.
5. The memory processing method according to claim 1, characterized in that: When the current memory reclamation algorithm is the tracing-based reclamation algorithm and the switched memory reclamation algorithm is the automatic reference counting-based reclamation algorithm, the step of switching the current memory reclamation algorithm to the automatic reference counting-based reclamation algorithm or the tracing-based reclamation algorithm in response to the memory reclamation algorithm switching request comprises: In the case where there is no circular reference between all the occupied memory blocks, the tracing-based recycling algorithm is switched to the automatic reference counting-based recycling algorithm.
6. The memory processing method according to claim 5, characterized in that: Also includes: In the event that there is a circular reference between all the occupied memory blocks, determining a warning message; The warning message is used to prompt that there is a risk of memory leak in the target memory block.
7. A memory processing device, characterized in that: include: An algorithm determination unit, configured to determine, in response to a memory recycling algorithm acquisition request, that the current memory recycling algorithm is a recycling algorithm based on automatic reference counting or a recycling algorithm based on tracing; the recycling algorithm based on automatic reference counting and the recycling algorithm based on tracing are designed using the same programming language, the recycling algorithm based on automatic reference counting implements recycling processing of memory blocks through reference counting; the recycling algorithm based on tracing implements recycling processing of memory blocks by determining the occupation status of each memory block; An algorithm switching unit, configured to switch the current memory reclamation algorithm to another reclamation algorithm of the automatic reference counting-based reclamation algorithm or the tracing-based reclamation algorithm in response to a memory reclamation algorithm switching request; The memory processing unit is used to process the occupied memory blocks according to the switched memory recycling algorithm.
8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the memory processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes instructions; when the instructions are executed by a processor of an electronic device, the electronic device executes the memory processing method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product includes instructions, and when the instructions are executed on a processor of an electronic device, the electronic device executes the memory processing method according to any one of claims 1 to 6.
