Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

38results about How to "Avoid memory leaks" patented technology

Embedded software memory management method

The invention relates to the technical field of embedded software memory management, in particular to an embedded software memory management method. By means of static allocation, the partition area quantity in a system memory area and quantity and size of memory blocks in each partition area are preset, then a dynamic memory allocation mode is adopted for a user memory area on the basis of a pool-type memory management mechanism, memory application and release requests are processed through creating of a memory allocator, and traditional dynamic memory allocation and release algorithms are improved. By combination of static system memory area allocation and dynamic user area allocation, system flexibility is improved while generation of a great quantity of fragments is limited, and memoryleakage is avoided. In addition, by adoption of the method, time consumption in memory application and release can be effectively reduced, and dynamic memory management efficiency is improved.
Owner:TIANJIN JINHANG COMP TECH RES INST

Inter-process communication method and device and computer equipment

The invention provides an inter-process communication method, a related device for realizing the method, computer equipment and the like. The method can be applied to intelligent terminals, automaticdriving equipment and the like. The method mainly comprises the steps that a communication engine running in a hardware layer or a high-level software layer provides a context switching instruction, when a caller running in a user mode calls a callee, context switching is directly achieved by calling the context switching instruction, the caller does not need to be trapped in a kernel, and the user experience is improved. Therefore, the intervention of the kernel on the context switching is avoided to a certain extent, and the execution time of the inter-process communication IPC is shortened.
Owner:HUAWEI TECH CO LTD

Memory management method of embedded system

The invention relates to a memory management method of an embedded system, which comprises the steps of: (1), opening up a physical memory, managing the physical memory by using a turnover thread heap management system, and allocating a memory space for data requirement from the tail end and the head end of a thread heap free memory by the thread heap management system, wherein the thread heap free memory has a normal state N and a turnover state F; (2), dividing all data requirements into a temporary space requirement and an output space requirement, and allocating one end of the thread heap free memory to be a temporary end or an output end by a type thread heap management system according to the data requirements; (3), allocating a head end memory to data required in a temporary space by the thread heap management system; and (4), when a superior function calls a subordinate function, controlling the thread heap free memory to turn over by the thread heap management system, when exiting the subordinate function, releasing a temporary space at the current temporary end, preserving the output space of the output end and merging with the temporary space of the temporary end of the superior function. The invention can realize timely release of the memory, has high operating efficiency, does not generate memory fragments, and can operate stably and efficiently for a long time.
Owner:TSINGHUA UNIV

Method for verifying terminal and stored data

The invention discloses a method for verifying terminal and stored data, which comprises the following steps: the memory space of the terminal to be verified is divided into one or more discrete cells to respectively calculate the sum of all byte data therein, the stored data of the corresponding discrete cell is judged to be accurate or not according to the consistency of the comparison result between the obtained value and the accurate one. In the invention, the strategy for defining the memory space and the method for verifying the stored data are adopted, so that the completeness and the accuracy of the stored data are guaranteed, the abnormal condition of the entire terminal system caused by incomplete stored data during the operation or in a standby is avoided, and the problems such as memory leak and out-of-bound access are solved, thereby guaranteeing the normal and reliable operation of the terminal.
Owner:ZTE CORP

Resource management method and device of application program integrated with game module, electronic equipment and storage medium

ActiveCN113082721AEasy to recycleAvoid display problemsVideo gamesGame engineResource management
The invention discloses a resource management method and device for an application program of an integrated game module, and the method comprises the steps: responding to an access button in a first page of the application program clicked by a user, and loading a second page of the application program, the second page being a game page realized based on a rewritten Cocos2d game engine; in response to loading of the second page, executing rendering of a game picture in the second page; in response to an exit button in the second page clicked by the user, setting a flag bit for stopping rendering of the game; based on the judgment of the flag bit in a plurality of key code segments of the rewritten Cocos2d game engine, terminating the execution of the plurality of key code segments; and after the execution of the plurality of key code segments is terminated, recovering the memory related to the second page in the process of the application program. The invention further discloses electronic equipment and a storage medium.
Owner:TENCENT MUSIC ENTERTAINMENT TECH SHENZHEN CO LTD

Configuration updating method, device and system, and electronic equipment

ActiveCN109462507AAvoid memory leaksAvoid data reading errors and other problemsProgram loading/initiatingData switching networksMemory addressTimestamp
The invention provides a configuration updating method, device and system, and electronic equipment. The method comprises the following steps that after configuration information is obtained from a Zookeeper server, the configuration information is converted into a configuration class through a byte code technology of java; the configuration class is loaded by using a class loader and is instantiated to obtain an instance corresponding to the configuration class; and the instance is stored in a context environment of the Java, so that the original configuration class stored in the context environment can be automatically updated. In this way, the configuration information is stored in an instance form; instance names are different, so that memory addresses stored in the context environmentare different; each instance is provided with timestamp information; and the latest instances are called according to the instance names and the timestamp information during subsequent configurationto perform configuration updating, so that the problem of memory leakage, data reading errors or the like caused by direct concurrent writing of configuration in the memory addresses can be avoided.
Owner:BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1

Control method of database cursors, and database system

The invention discloses a control method of database cursors, and a database system. The control method of the database cursor comprises the steps that when database activation cursors are detected, the activated cursors and corresponding cursor grades will be recorded, so that a sequence list of all the activated cursors can be obtained; and when the detection result indicates that the activated and idle low-grade cursors exist in the sequence list, memory resources occupied by the low-grade cursors will be released. According to the invention, the cursors can be closed according to the cursor grades and the resources can be released when memory resources are insufficient, so that memory leak caused by the database cursors can be solved effectively.
Owner:SHENZHEN TCL NEW-TECH CO LTD

Distributing method and device of bullet-screen message, terminal and storage medium

The embodiment of the invention discloses a distributing method and device of a bullet-screen message, a terminal and a storage medium. The method includes: if a starting indication is received againafter a first live streaming room is destroyed, calling a lifecycle creation function of the first live streaming room, and sending first identification information and a corresponding current first reference relationship to a bullet-screen distributing object; replacing a historical reference relationship, which is of the first live streaming room and is already stored in a preset key value paircollection object, with the current first reference relationship by the bullet-screen distributing object according to the first identification information, wherein the current first reference relationship is inherited from a preset listener interface protocol, and the preset listener interface protocol includes a receiving method of the bullet-screen message; and distributing the bullet-screen message to the first live streaming room by the bullet-screen distributing object on the basis of the current first reference relationship through calling the receiving method of the bullet-screen message. Through adopting the above technical solution, the problem of memory leakage is solved on the basis of distributing the bullet-screen message to the currently running live streaming room.
Owner:WUHAN DOUYU NETWORK TECH CO LTD

Method and device for zero copy of embedded system memory

The invention discloses a method for zero copy of an embedded system memory. The method comprises the following steps that S10, a unified data block format which comprises a standard head, an extension head and a reserved space is adopted; S20, a module A allocates a memory to the data Z according to a unified data block format, and configures a mem_msg field; and writing data Z in the corresponding header position of the unified data block format; S30, the module A expands the data structure of the pbuf, and adds a pointer pointing to the head of the Ethernet and the memory allocation and release field; S40, the module A processes the data Z based on the expanded pbuf data structure, and adds a release function pointer in a mem_msg field pointed by the pkt_msg pointer in a pbuf release function; S50, the module B reads the memory allocation and release field, and calls the memory release function pointed by the release function pointer to release the memory occupied by the data Z. According to the method, memory allocation and release and data zero-copy transmission are optimized.
Owner:ASR MICROELECTRONICS CO LTD

Communication method and device, electronic device and computer readable storage medium

The invention discloses a communication method and device and system, an electronic device and a computer readable storage medium. The method comprises the steps of determining address information ofa second device and a protocol type of communication between a first device and the second device; creating a target connection based on the address information and the protocol type, and recording connection information of the target connection into a connection pool corresponding to the protocol type; wherein the connection information comprises address information and a file descriptor of the target connection; if the protocol type is the UDP type of the write-only mode, sending a first data packet to the second device through the target connection; when a second data packet from second device is received through the target connection, performing packet loss processing on the second data packet; wherein the first data packet and the second data packet are both UDP type data packets. Therefore, according to the communication method provided by the invention, the memory leakage when the UDP type connection communication is used is avoided, the memory occupation is obviously reduced, and the device performance is improved.
Owner:TENCENT MUSIC ENTERTAINMENT TECH SHENZHEN CO LTD

Method and system for search group calling

The system comprises: setting a call control module array, a call control node array, a Harsh queue array and an idle node array; getting the call reference in relevant message, and making Harsh operation for the call reference to generate a H1 value; according to the array element in the Harsh queue array whose subscript value is H1, getting the opposite linked table; sequentially looking up, and comparing the reference value, until finding the call control module opposite to t he call reference value.
Owner:CHANGZHOU XIAOGUO INFORMATION SERVICES

Object release method and device, equipment, and storage medium

The embodiment of the invention discloses an object release method and device, equipment and a storage medium. The method comprises the following steps: taking a component identifier of the componentand a class object of a class type in the component as function input parameters, calling a data navigation function in the data management object, determining an instance object corresponding to theclass object, and storing the instance object and an object identifier of the instance object to a target position corresponding to the component identifier in the data cache object; and when a component destruction operation of the component is detected, taking the component identifier as a function input parameter, calling a data release function in the data management object, and releasing thecomponent identifier stored in the data cache object, the instance object corresponding to the component identifier and the object identifier of the instance object. Through the technical scheme of the embodiment of the invention, the instance object can be released in time, the problem of memory leakage is effectively avoided, and the normal operation of the application program is ensured.
Owner:武汉斗鱼鱼乐网络科技有限公司

Video processing method and device, medium and electronic equipment

The invention belongs to the technical field of video encoding and decoding, and particularly relates to a video processing method, a video processing device, a computer readable medium and electronicequipment. The video processing method comprises the steps of: registering a sub-process for performing video encoding and decoding processing, and establishing inter-process communication connectionbetween a main process and a sub-process; enabling the main process to transmit video processing resources used for performing video encoding and decoding processing on a to-be-processed video to thesub-process; according to the video processing resources, decoding the to-be-processed video through the sub-process to obtain an original video frame, and editing the original video frame to obtainan edited video frame; and carrying out visual display on the edited video frame through the main process. According to the video processing method provided by the invention, the memory pressure can be reduced, and the system stability and reliability are improved.
Owner:TENCENT TECH (SHENZHEN) CO LTD

Data processing method and device, storage medium and electronic equipment

The invention discloses a data processing method and device, a storage medium and electronic equipment. The data processing method can comprise the steps: monitoring a life cycle event of a second object through a first object, wherein the first object refers to the second object, and the life cycle of the first object is longer than that of the second object; detecting whether a life cycle end event of the second object is monitored or not; and if the life cycle end event of the second object is monitored, cancelling the reference of the first object to the second object. According to the data processing method, memory leakage caused by the fact that the long-life-cycle object still holds the reference of the short-life-cycle object after the life cycle of the short-life-cycle object is finished can be effectively avoided.
Owner:TENCENT MUSIC ENTERTAINMENT TECH SHENZHEN CO LTD

Method and device for processing tag data

A tag data processing method is disclosed. The method includes: receiving tag information sent by an adapter, updating the stored tag data according to the tag information, determining a tag state after the tag information has been received, and sending the tag of which the tag state is active to an upper layer for processing. A tag data processing device is also disclosed. By using the method and the device, the burden of data processing is reduced for a system, and the generation of redundant data is avoided.
Owner:ZTE INTELLIGENT IOT TECH

Sound effect control method and device

PendingCN112791407AHighly configurableImproved development process efficiencyDigital data information retrievalVideo gamesHTML5Acoustics
The embodiment of the invention provides a sound effect control method and device. The method comprises the steps that: sound configuration data is obtained; a sound manager is created, and a plurality of sound object type instances are created through the sound manager according to the sound effect configuration data, wherein the sound object type instances have sound control attributes, and the sound object type instances are used for controlling sound effects according to the sound control attributes; and the plurality of sound object type instances are stored in the sound manager, so that the sound manager manages the plurality of sound object type instances. Through the sound manager and the sound object types, the configurability of a sound effect system in an HTML5 game is greatly improved; a game planning and sound effect group can simply modify table data to correct the data and adjust expressions, and does not need to repeatedly modify and output sound resources, so that the efficiency of a development process is improved.
Owner:NETEASE (HANGZHOU) NETWORK CO LTD

Method and device for message processing by function class using handler

The embodiment of the invention provides a method and a device for using Handler to carry out message processing by a function class. The method for using the Handler to carry out the message processing by the function class comprises the following steps that: a function class receives a business processing request message; and the function class processes the business processing request message through a first Handler class and a second Handler class, wherein the second Handler class weakly cites the first Handler class, and the second Handler class is a native Handler subclass. By use of the embodiment of the invention, in a simple way, a reachable path from the native Handler to the function class is weak reachability, the problem of function class OOM (Out Of Memory) since the native Handler is directly used is effectively avoided, and the collapse rate and the OOM problem of APP can be lowered.
Owner:BEIJING 58 INFORMATION TTECH CO LTD

Array processing method and device, electronic equipment and storage medium

The embodiment of the invention provides an array processing method and device, electronic equipment and a storage medium, which are used for solving the problem that the value of a sparse array is stored in a strong reference manner, so that memory leakage is easily caused. The method comprises the following steps: if a target user interface component of a target application is started, adding atarget data unit corresponding to the target user interface component into a first sparse array of the target application; if the target user interface component is ended, executing a garbage collection operation; and if the first sparse array comprises the target data unit, performing weak reference processing on the first sparse array to obtain a second sparse array. By implementing the embodiment of the invention, memory leakage can be avoided.
Owner:KINGSOFT

An Embedded Software Memory Management Method

The invention relates to an embedded software memory management method, and relates to the technical field of embedded software memory management. The present invention adopts the method of static allocation, presets the number of partitions in the system memory area and the number and size of memory blocks in each partition, and then adopts a dynamic memory allocation method for the user memory area based on the pool memory management mechanism. The memory allocator handles memory application and release requests, and improves the traditional dynamic memory allocation and release algorithms. This method uses a combination of static allocation of system memory area and dynamic allocation of user memory area, which increases the flexibility of the system, and at the same time limits the generation of a large number of fragments, avoiding the occurrence of memory leaks, and this method can effectively reduce the application and It takes time to release memory and improve the efficiency of dynamic memory management.
Owner:TIANJIN JINHANG COMP TECH RES INST

Event registration method and device, application program compiling method and device and electronic equipment

The embodiment of the invention provides an event registration method, an application program compiling method and device, electronic equipment and a storage medium, and relates to the technical field of application program compiling. The event registration method comprises the following steps: acquiring a source code file, and searching the type of the source code file; according to the type, confirming a registration method and an anti-registration method; and calling a running state SDK (Software Development Kit) to inject corresponding event registration codes and anti-registration codes into the registration and anti-registration methods, and packaging into an executable file. According to the technical scheme, the setting efficiency of event registration in compiling can be improved.
Owner:GUANGZHOU HUYA TECH CO LTD

A method, device, terminal and storage medium for distributing barrage messages

The embodiment of the invention discloses a barrage message distribution method, device, terminal and storage medium. The method includes: after the first live broadcast room is destroyed, if the activation instruction is received again, calling the life cycle creation function of the first live broadcast room, and sending the first identification information and the corresponding current first reference to the barrage distribution object relationship; the barrage distribution object replaces the historical reference relationship of the first live broadcast room stored in the preset key-value pair set object with the current first reference relationship according to the first identification information; wherein, the current first reference relationship inherits from the preset Set up the listener interface protocol, and the preset listener interface protocol includes the receiving method of the bullet chat message; the bullet chat distribution object distributes the bullet chat message to the first live broadcast by calling the receiving method of the bullet chat message based on the current first reference relationship between. By adopting the above technical solution, the problem of memory leak is solved on the basis of distributing the barrage messages to the running live broadcast room.
Owner:WUHAN DOUYU NETWORK TECH CO LTD

SNMP monitoring method, server and SNMP monitoring system

The invention discloses an SNMP monitoring method, a server and an SNMP monitoring system. The method comprises the steps of presetting monitoring information of monitored objects of an SNMP table; in an SNMP table traversing process, when a pointer points to a header of the SNMP table, creating a corresponding entry link table for each current monitored object; and when the traversal of the SNMP table is finished each time, emptying the entry link tables in the SNMP table. By presetting the monitoring information of the monitored objects of the SNMP table, the SNMP table can obtain data of the monitored objects; a premise is provided for dynamically obtaining entry of the monitored objects subsequently; by enabling the pointer to point to the header of the SNMP table in each SNMP table traversing process, the corresponding entry link table is created for each current monitored object, so that the entry link table of each monitored object which is not removed and still runs currently can be dynamically created; and meanwhile, when the traversal of the SNMP table is finished each time, the entry link tables in the SNMP table are emptied, so that memory leakage is prevented and the SNMP table can be simplified.
Owner:ZHENGZHOU YUNHAI INFORMATION TECH CO LTD

Method for realizing fly wire effect based on web front-end technology

The invention provides a method for realizing a fly wire effect based on a web front-end technology. The method comprises the steps of setting a data filtering condition a1; according to the filteringconditions a1, receiving the request data, establishing a data processing queue A, sending the obtained request data to the data processing queue A, drawing a flying wire from the advanced data of the request data in the data processing queue A, positioning a source address and a destination address on a map according to the addresses contained in the advanced data, drawing the flying wire between the source address and the destination address on the map, and counting 1; storing the drawn data, the fly wires and the counts as the fly wire data in a reserved fly wire library. According to themethod, by acquiring the data in the recent preset time in real time, drawing the data in a queue form, and displaying the data on the map, the source address and the destination address of the real-time data meeting the conditions is emphatically displayed, and the method has the advantages of high efficiency, good performance, good interaction effect, prevention of memory leakage and improvementof data processing efficiency.
Owner:HANGZHOU ANHENG INFORMATION TECH CO LTD

Method and device for preventing memory leakage, and computer readable storage medium

The invention discloses a method for preventing memory leakage, which comprises the following steps of customizing a static executable object, and realizing a Runnable interface by the static executable object; transmitting at least one first Runnable object to be executed into the static executable object by using a proxy mode to perform weak reference packaging to obtain a packaged second Runnable object; customizing a strong reference queue, and after the first Runnable object is packaged, inserting the first Runnable object into the strong reference queue; submitting the packaged second Runnable object to a thread pool to wait for execution; and when a target thread in the thread pool starts to be executed, deleting a first Runnable object corresponding to a second Runnable object executed by the target thread in the strong reference queue. The invention further provides a device for preventing memory leakage and a computer readable storage medium. According to the memory leakage prevention method provided by the invention, the reference of the Runnable object to the external class can be decoupled, and the memory leakage of the external class is avoided.
Owner:CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products