How to use Pageheap.exe in Windows XP, Windows 2000, and Windows Server 2003

PageHeap 作用PageHeap在TCMalloc中主要作用: 作为Central Cache和操作系统之间的内存缓存,PageHeap对内存的管理是通过Span来管理的,而Central Cache向pageheap申请内存的基本单位就是span。关于Span的描述见上篇CentralCache。 负责大块内存的申请和释放。 空闲span的管理PageHeap有两种span的管理方式: 一个是用于管理内 阅读详情

SUMMARY

This article describes how to use the Page Heap tool (Pageheap.exe) in Microsoft Windows XP, Microsoft Windows 2000, and Microsoft Windows Server 2003.

MORE INFORMATION

Pageheap.exe sets page heap flags that help to find heap-related corruption. It can also help detect leaks in programs that are running on Windows 2000 Professional Service Pack 2 (SP2) and Windows XP Professional systems.

Pageheap.exe introduces a software validation layer (Page Heap manager) between the application and the system that verifies all dynamic memory operations (allocations, frees, and other heap operations). When Page Heap manager is enabled, the application that is being tested is then started under a debugger. If a problem is encountered, it will cause a debugger break.

Important Pageheap.exe does not specify what the bug is, but it will crash the system when a problem is encountered. It enables a verification layer that already exists in the Ntdll.dll system libraries in Windows 2000 Professional SP2 and Windows XP Professional. Pageheap.exe will not work on previous versions of Microsoft Windows.

If the application being tested is not started under a debugger and a bug is encountered, it will just crash without any feedback.

Concepts

A common problem in application development is heap corruption. This typically occurs when an application allocates a block of heap memory of a given size and then writes to memory addresses beyond the requested size of the heap block. Heap corruption can also occur when an application writes to block of memory that has already been freed.

Two concepts are central to understanding the commands related to Pageheap.exe and the way to use it:
• Corruptions in heap blocks are discovered by either placing a non-accessible page at the end of the allocation, or by checking fill patterns when the block is freed.
• There are two heaps (full-page heap and normal page heap) for each heap created within a process that has page heap enabled.
• Full-page heap reveals corruptions in heap blocks by placing a non-accessible page at the end of the allocation. The advantage of this approach is that you achieve "sudden death," meaning that the process will access violate (AV) exactly at the point of failure. This behavior makes failures easy to debug. The disadvantage is that every allocation uses at least one page of committed memory. For a memory-intensive process, system resources can be quickly exhausted.
• Normal page heap can be used in situations where memory limitations render full-page heap unusable. It checks fill patterns when a heap block is freed. The advantage of this method is that it drastically reduces memory consumption. The disadvantage is that corruptions will only be detected when the block is freed. This makes failures harder to debug.

Download Location for the Pageheap Tool

To download the latest debug tools package, click the following link:

Select the latest release of the debug tools. When you install the tools, select the Custom installation, and then install to a directory with an appropriate name. For example, install to tools to C:/Debug or C:/Debugtools.

Choosing a Method to Investigate Heap Block Corruptions

Most of the corruptions in heap blocks can be discovered in one of two ways:
• Full-page heap: Place a non-accessible page at the end of the allocation.
• Normal page heap: Check fill patterns when the block gets freed.
Full-Page Heap
Full-page heap should be enabled for individual processes, or under limited parameters for large processes, because of its high memory requirements. It cannot be enabled system-wide, because it is difficult to evaluate the required page file size. Using a page file that is too small with system-wide full-page heap renders the system unbootable.

The advantage of full-page heap is that it causes a process to access violate (AV) exactly at the point of failure. This makes the failure easy to debug. In order to be able to pinpoint failures, first use normal page heap to determine the range where a process is failing, and then use full-page heap on individual large-scale processes for that restricted class of allocations (that is, a specific size range or a specific library).
Normal Page Heap
Normal page heap can be used for the testing of large-scale processes without the high memory consumption that full-page heap requires. However, normal page heap delays detection until blocks are freed, thus making failures more difficult to debug.

In general, use normal page heap for initial large-scale processes testing. Then, if problems are detected, enable full-page heap for a restricted class of allocations in those processes.

Normal page heap can be safely enabled system-wide for all processes. This is very useful on test benches that perform general system validation, rather than component focused testing. Normal page heap can also be enabled for a single process.

Using GFlags with System-Wide Page Heap

The GFlags tool is used to enable system-wide page heap. In order for a GFlags command to take effect, you must restart your computer after you issue the command.

To enable system-wide normal page heap:
1. Type the following at the command line: gflags -r +hpa

2. Restart your computer.
To disable system-wide normal page heap:
1. Type the following at the command line: gflags -r -hpa

2. Restart your computer.
Note No other GFlags settings are useful when you enable page heap. If other settings that appear to be related to the heap are enabled, then page heap bugs can be introduced due to conflicts between page heap manager and these "harmless" heap flags.

Using GFlags With a Single Process Page Heap

You can enable the page heap to monitor one specific process. To do this, follow these steps:
1. At a command prompt, change the directory where you installed the debug tools.
2. At the command prompt, type the following, and then press ENTER:
Gflags.exe –p /enable lsass.exe
Note lsass.exe stands for the name of the process that you want to monitor with the Pageheap tool.
3. When you no longer need page heap monitoring, disable the monitoring. To do this, type the following at a command prompt, and then press ENTER:
Gflags.exe -p /disable lsass.exe
Note lsass.exe stands for the name of the process that you want to monitor with the Pageheap tool.
4. To list all programs that currently have Pageheap verification enabled, type the following at a command prompt, and then press ENTER:
Gflags.exe -p

Unaligned Allocations

The Windows heap managers (all versions) have always guaranteed that the heap allocations have a start address that is 8-byte aligned (on 64-bit platforms the alignment is 16-bytes). The page heap manager makes the same guarantee. This is impossible, however, if you want to have the end-of-the-allocation exactly at the end of a page. The exact end-of-page allocation is needed so that an off-by-one-byte error will trigger a read or write into the non-accessible page and cause an immediate fault.

If the user-requested size for the block is not 8-byte aligned, then page heap cannot meet both the "start address 8-byte aligned" and the "end address page aligned" constraints. The solution is to meet the first constraint and make the start of the block 8-byte aligned. Then use a small fill pattern between the end of the block and the start of the non-accessible page. This fill pattern can be from 0 bytes through 7 bytes in length on 32-bit architectures. The fill pattern is checked upon free.

If immediate fault detection is needed for these allocations that otherwise will have a fill pattern at the end, make the page heap manager ignore the 8-byte alignment rule, and always align the end of the allocation at a page boundary by using the /unaligned and /full parameters. For more information, see the /unaligned parameter.

NOTE : Some programs make assumptions about 8-byte alignment and they stop working correctly with the /unaligned parameter. Microsoft Internet Explorer is one such program.

Uncommitted Pages for Full-Page Heap Allocations

The core full-page heap implementation commits two pages for any allocation smaller than one page. One page is used for the user allocation, and the other is made non-accessible at the end of the buffer.

End-of-buffer overruns can be detected by using a zone of reserved virtual space, instead of a non-accessible committed page. An access violation exception occurs when the process touches that reserved virtual space. This approach can reduce memory consumption by up to 50 percent. For more information, see the /decommit parameter.

Fault Injection

You can control page heap manager so that some allocations are deliberately failed. This is useful in simulating low memory conditions without actually using all system resources.

Specify a number from 1 through 10,000 to represent the probability that an allocation will fail. Using a probability of 10,000 ensures that 100 percent of allocations will fail. A probability of 2,000 specifies that approximately 20 percent of allocations will fail.

The page heap manager takes special care to avoid fault injection in both the first 5 seconds of the process' life, and the Windows NT loader code paths (for exampole, LoadLibrary, FreeLibrary). If 5 seconds is not sufficient to allow your process to complete startup, then you can specify a longer timeout at the beginning of the process. For more information, see the /fault parameter.

When you use the /fault parameter and the process being tested has a bug, an exception will be raised. Generally, the reason for this is that the allocate operation returned a NULL, and the application later tries to access the allocated memory. Because the allocate failed, however, the memory cannot be accessed, and therefore an access violation occurs.

The other reason that an exception is raised is that the application tries to deal with the allocation failure, but does not release some resources. This manifests as a memory leak and is more difficult to debug.

In order to help diagnose these failures, the page heap manager keeps a history of stack traces from the moment of fault injection. These traces can be displayed with the following debugger command:

!heap -p -f [NUMBER-OF-TRACES]

By default the extension will display only the last four traces.

Automatically Attaching a Debugger When the Application Starts

Some applications are difficult to start from a command prompt, or they are spawned from other processes. For these applications, specify that, whenever they are started, a debugger will automatically be attached to them. This is useful if page heap is enabled for that process and heap failures occur. For more information, see the /debug parameter.

Pageheap.exe is effective when used to verify any memory allocation process, including C++ style allocations new and delete, as long as the custom allocation/free functions eventually call into NT heap management interfaces (that is, RtlAllocateHeap, RtlFreeHeap). The following functions are guaranteed to do that:
• Functions like HeapAlloc , HeapFree , HeapReAlloc : These functions are exported by kernel32.dll and call directly into the NT heap interfaces. Functions like GlobalAlloc , GlobalFree , GlobalReAlloc : These functions are exported by kernel32.dll and call either directly or indirectly into the NT heap interfaces.
• Functions like LocalAlloc , LocalFree , LocalReAlloc : These functions are exported by kernel32.dll and call either directly or indirectly into the NT heap interfaces.
• Functions malloc , free , realloc , msize , expand : These functions are exported by msvcrt.dll and call either directly or indirectly into NT heap. This has not always been the case. The C run-time used to have a different heap implementation, but the current C run-time calls directly into NT heap.
• Operators new , delete , new[ ] , delete[ ] : These functions are exported by msvcrt.dll and call either directly or indirectly into NT heap.
Any other allocation/free set of functions probably is a custom scheme and is not guaranteed to call either directly or indirectly into NT heap. Only source code inspection or running under debugger can reveal the actual implementation.

Avoid using static linking. Some applications have been statically linked to old versions of the C runtime. These old versions do not call Windows NT heap APIs, and Pageheap.exe cannot be used to verify these allocations. Dynamic linking ensures that you get the latest C runtime library (msvcrt.dll).

Classes of Bugs Found by Pageheap.exe

Pageheap.exe detects most heap-related bugs; however, it is focused on heap corruption problems and not focused on leaks. Pageheap.exe has limited success with finding heap leaks, although it has functionality to target this.

One of the advantages of Pageheap.exe is that many errors are detected when they happen. For example, an off-by-one-byte error at the end of a dynamically allocated buffer might cause an instant access violation. There are few types of errors that cannot be detected when they occur. In those cases, the error report is delayed until the block is freed.
• Invalid heap pointer : All Win32 and Windows NT level heap interfaces take as a first parameter a pointer to the heap where the operation should happen. The page heap manager detects an invalid heap pointer at the moment the call is made.
• Invalid heap block pointer : After a block is allocated, it can be used as a parameter for several heap interfaces, notably the free() class of interfaces. The page heap manager immediately detects an invalid heap block pointer. See Debugging Page Heap Failures for a way to determine if the invalid address is a few bytes off, or is completely incorrect.
• Multithreaded unsynchronized access to the heap : Some applications call into a heap from multiple threads. This type of scenario requires setting a flag (by the user) which will trigger acquiring a heap lock. The page heap manager will detect this type of violation when two threads attempt to call simultaneously into the heap.
• Assumptions about reallocation of a block at the same address : A reallocation operation is not guaranteed to return the same address. This is especially true when the reallocation reduces the size of the block. Some applications assume that reallocation will return the same address. The page heap manager always allocates a new block during a reallocation and frees the old block. The free block is protected for read/write access, and therefore any access to it will raise an access violation.
• Double free : This bug, where the same heap blocks are freed several times, is common in some applications. This is detected immediately by the page heap manager because, on the second free, the block will not have the proper prefix header and cannot be found among the allocated blocks. See Debugging Page Heap Failures for ways to analyze the stack trace of the first free operation. This error can be a variant of the reallocation problem because, when the application frees what it thinks it is the address of the block, that block was already freed as part of the reallocation.
• Access of block after free : Freed memory blocks are kept for a short time by the page heap manager in a pool of protected memory. Any access to those blocks will raise an access violation. Based on the "locality" principle, most of the problems should be caught if the free protected pool is large enough. If the freed block is still in the protected pool, the bug is caught instantly. However, if the memory was reused, then there is less chance of finding the bug or identifying the code that caused it.
• Access after the end of allocated block : The page heap manager places an inaccessible page immediately following the allocated block. Any access past the end of the block will raise an access violation. Some applications expect allocations to be 8-byte aligned. This feature has been supported since Windows NT 3.5 heap managers. A request size that is not 8-byte aligned will still get an 8-byte aligned address, but this leaves a few bytes after the end of the block that are still accessible. If the application corrupts only those few bytes, then the error will be caught only by checking the block suffix pattern when the block is freed.
• Access before the start of allocated block : The page heap manager can be instructed through a settable flag to place the inaccessible page at the beginning of the block, rather than at the end. Any access before the start of the block will raise an access violation.
Failure Normal page heap Full-page heap
Invalid heap pointer Caught instantly Caught instantly
Invalid heap block pointer Caught instantly Caught instantly
Unsynchronized access Caught instantly Caught instantly
Assumption about reallocation address 90% until real free 90% caught instantly
Double free 90% caught instantly 90% caught instantly
Reuse after free 90% until real free 90% caught instantly
Access after end of block Caught upon free Caught instantly
Access before start of block Caught upon free Caught instantly (special flag)

Debugging Page Heap Failures

For more information on Debugging Page Heap Failures, please look at Application Compatibility Tookit Reference available inside of the Application Compatibility Toolkit.

For the Syntax of Pageheap.exe and examples of using Pageheap.exe, please look at Application Compatibility Tookit Reference available inside of the Application Compatibility Toolkit.
免费升级哨兵2号分辨率!用SRCNN深度学习模型实现10米→2.5米超分重建 本文详细介绍了如何利用SRCNN深度学习模型,将哨兵2号遥感影像的分辨率从10米免费提升至2.5米。文章提供了从数据准备、模型训练到部署应用的全流程实战指南,旨在通过AI应用技术,为农业监测、城市规划等领域提供更高精度的影像数据支持。 阅读详情

相关推荐

在Unity3d使用yolov8的onnx模型

输出OUTPUTS是float32[1,35,8400],表示它会输出一个大小为[1, 35, 8400]的浮点数张量。这个输出张量的维度表示了检测到的目标的数量、每个目标的预测参数以及网格单元的数量。输出张量的第一个维度1表示检测到的目标数量。每个目标由35个值组成,表示目标的类别、置信度、边界框的坐标及10个特定点的位置。要取得8400个数据中置信度最高的数据,然后获取该数据其他channel的数据。运行结果:(蓝色是检测手的边框,红点是自定义的点),其中的四个数字分别表示不同的维度。

shenqingyu0605202324的博客 5610

Win2000 SP4、.Net Framework2.0、aspnet_regiis.exe,HeapSetInformation错误

<br />我想标题已经提供了足够的信息。<br /> <br />Win2000 SP4所配IIS应该是5.1,缺省是不支持ASP.NET 2.0的,需要通过<br />.Net Framework2.0的aspnet_regiis.exe进行配置,但是可能会出现HeapSetInformation错误。<br />当然还有其它的场合也会出现这个错误,以【aspnet_regiis.exe heapsetinformation】为关键字g一下就知道。<br /> <br />博客园的这篇文章值得参考:<b

你是我永远的乡愁 1219

整合Springboot+MybatisPlus+达梦数据库

整合Springboot+MybatisPlus+达梦数据库,以及一些坑

波波的博客 6685

Win2000命令全集

Win2000命令全集Win2000命令全集放到机器里好长时间了。刚好看到就发上来咯。。。accwiz.exe > Accessibility Wizard for walking you through setting up your machine for your mobility needs. 辅助工具向导 acsetups.exe > ACS setup DCOM server exec

技术日志 1642

手把手教你学Simulink--基于Simulink的风力发电系统用双馈电机控制仿真建模

特点高效节能:在广泛的风速范围内保持高效的能量转换。独立控制有功和无功功率:通过控制转子电流实现对有功和无功功率的独立调节。较低的成本:相比直接驱动或全功率变流器方案,成本较低。挑战控制复杂度较高:需要复杂的控制算法来实现有功和无功功率的解耦控制。对电网波动敏感:需要良好的稳定性控制策略以应对电网电压波动。利用Simscape Electrical中的模块构建DFIG的物理模型,配置参数如电阻、电感、极对数等。matlab深色版本% 添加DFIG电机模块。

MHD0815的博客 360

YOLOv8独家原创改进:SPPF原创自研创新 | SPPF创新结构,重新设计全局平均池化层和全局最大池化层,增强全局视角信息和不同尺度大小的特征

SPPF_improve利用全局平均池化层和全局最大池化层,加入一些全局背景信息和边缘信息,从而获取全局视角信息并减轻不同尺度大小所带来的影响

①订阅者答疑群聊服务;②FDE:工业缺陷检测项目;③paper/创新算法指导;④免费提供YOLO创新涨点推荐顾问Skill和AI小怪兽数字分身; 4695

Windows has triggered a breakpoint in xxx.exe

原文网址:http://hi.baidu.com/wayright/item/13dbe1b574763975254b09f2 Windows has triggered a breakpoint in xxx.exe 看到这个错误就可以推测是内存使用错了,但是这种错误很隐蔽。所以昨天花了一整天找到这个错误,最后发现是一个全局变量指针指向了一个非全局类实例的

豆子的collection 4956

188、AI 虚化渲染:从深度图到光学虚化的模拟,光斑与渐进虚化的算法实现

AI虚化渲染技术解析:从深度图到光学级虚化效果 本文深入探讨了手机AI虚化渲染的关键技术,包括深度图处理、光学虚化模拟和渐进虚化算法。文章指出手机深度图存在边缘精度不足的问题,提出通过引导滤波进行边缘锐化预处理。针对传统高斯模糊的"塑料感",介绍了基于物理光学模型的弥散圆卷积核实现方法,包括光圈形状模拟和光斑模板生成。重点分析了渐进虚化技术,通过分层渲染和混合解决深度断层问题,并给出性能优化方案。最后详细解析了真实感光斑渲染的三个特征:边缘增强、洋葱圈纹理和非相干叠加,提供了完整的实现思路和关键代码片段。文

sundong_81的博客 144

WinDbg分析Dump常用方法和命令

记录下自己使用WinDbg分析Dump时常用的一些方法和命令 1 !analyze -v       //找出出错的堆 2 .exrc          //找到程序崩溃的位置 3 !heap          //打印出错函数的局部位置 4 !for_each_frame dv /t //显示call stack内容 5 ~*kbn           /...

weixin_34377919的博客 1329

基于MATLAB的变分模态分解(VMD)算法详解

变分模态分解(VMD)是一种先进的信号处理方法,通过变分框架将复杂信号分解为多个模态分量。相比传统经验模态分解(EMD),VMD具有坚实的数学基础,能有效抑制模态混叠和端点效应。其核心思想是将信号分解转化为约束优化问题,通过交替方向乘子法迭代求解各模态的中心频率和带宽。VMD在机械故障诊断、生物医学信号处理等领域展现出优越性能,尤其适合处理非平稳非线性信号。该算法通过严格的数学模型实现自适应频谱优化,为信号分析提供了更可靠的工具。

qq_42212808的博客 746

Python爬虫应对Cloudflare防护:5秒盾+Turnstile验证码实战(AST反混淆+指纹模拟,成功率95%)

Cloudflare 5秒盾+Turnstile验证码的防护核心,是通过“前端JS挑战+多维度指纹校验”确认请求来源的真实性。用AST反混淆还原CF的验证逻辑,避免执行无用代码导致的验证失败;基于真实浏览器采集指纹,确保指纹维度100%匹配真人环境;结合轻量级JS引擎和自动化工具,模拟完整的浏览器执行环境。该方案的绕过成功率可达95%(剩余5%主要是IP或请求频率导致的风控),适用于绝大多数部署CF防护的网站。

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 1734

06 Frequently Asked Questions (FAQ) 常见问题解答 (常见问题)

Frequently Asked Questions (FAQ) Origins起源What is the purpose of the project?What is the history of the project?What's the origin of the gopher mascot?Why did you create a new language?What ...

weixin_30735391的博客 2万+

Android11车机系统海外项目资源包RRO方案优化

本文介绍了汽车设置应用如何通过Android RRO(运行时资源叠加)方案实现多车型差异化资源管理。针对不同车型(国内/海外、轿车/SUV)和配置(方向盘、轮毂等),采用产品变体(productFlavors)构建不同APK版本,并通过JSON配置文件动态启用对应资源包。系统根据车辆下线配置自动匹配适用的资源叠加包,解决了硬编码判断带来的维护问题。该方案实现了资源的高效复用,同时支持灵活配置多种车型组合,为汽车行业多车型共平台开发提供了可扩展的技术实现。

shusuanly的博客 475

php thread dump,WinDbg分析Dump常用方法和命令

记录下自己使用WinDbg分析Dump时常用的一些方法和命令1 !analyze -v       //找出出错的堆2 .exrc          //找到程序崩溃的位置3 !heap          //打印出错函数的局部位置4 !for_each_frame dv /t //显示call stack内容5 ~*kbn           //显示所有线程信息6 ~线程号 s...

weixin_42131798的博客 482

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

Vue开发篇之组件通信与表单:点了任务行,谁来更新列表

用四个Vue组件完成任务录入与状态切换,跟踪props、事件转发和表单草稿的归属。

code2cat的博客 294

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

从0开发游戏引擎-对象管理器ObjectManage实现

📚依赖知识:Node 类(zOrder 成员)、2D 游戏对象 Cobject(colliderWith / isRelease)。

qq_33531923的博客 158

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

用 Python 给长文做排版体检:图够不够、段落是不是太长

如果只按字符数硬算,代码块会被当成正文,一张 30 行的代码贴进去,立刻触发「连续正文 800 字」。清单和小标题也一样,它们本来就是分行内容,视觉密度低。import re[](path)RE_MOUNT = re.compile(r"^\[\[IMG:[^\]]+\]\]\s*$") # [[IMG:path|caption]] 独占一行RE_HEAD = re.compile(r"^#{1,6}\s") # 标题") # 引用块。

邱华林的博客 349

Argument list too long:参数撞上的那堵墙

通配符是个很好用的语法糖,但它不是免费的:展开发生在命令执行之前,所有文件名都要在内核那里过一次安检。文件名里可能包含空格、换行甚至引号,用默认的换行分隔会把一个文件拆成好几个参数,反而制造新的麻烦。分隔的,管道出来变成了换行,统计口径不完全一致,但它足够帮你发现“环境是不是异常膨胀了”。里 128 KB 的缓冲区,就是它给自己留的安全余量——它宁可多跑几趟,也不愿意踩到。)的四分之一来算这个上限,同时设了一个下限,算出来的结果通常就是 2 MB 左右。目录里的日志文件不算大,几百兆而已,磁盘也还有空间。

IMPYLH的博客 261

Java 8 Lambda 中 forEach 如何提前终止?

这些方法内部一旦拿到结果就会停止遍历后续元素,是官方支持的"提前终止"。相反,是"丢弃开头满足条件的元素,直到遇到第一个不满足的才开始收集"。只有在极少数无法改造结构的场景下才考虑,且建议自定义一个专用异常类型。如果需求是"满足条件时继续,一旦不满足就停",Java 9 引入的。中),也不能通过返回值告诉调用方"停下来"。,它们的设计目标就是"把每个元素都消费一遍",因此。甚至不能写,因为表达式必须有值。都能用,语义清晰,性能也最好。,lambda 体里既不能写。内部接管,外部无法干预。

2601_96916168的博客 315

c++ list 基础使用+底层实现

介绍了list的常用接口,并且对一些常见的接口进行了模拟实现,尤其是ist的迭代器尤为重要。

晴天的博客 211

C++STL03_list与容器适配器 | 为什么 list 的 insert 不失效

list 和 vector 都能存一串数据,为什么一个 insert 会失效、另一个不会? | v 本文先讲清 list 的底层——双向带头循环链表,再对比它与 vector 的差异 | v 然后看 stack、queue、priority_queue 这三个"容器适配器"怎么基于现成容器改出接口 | v 最后补上模板进阶(非类型参数、特化、分离编译)。

2502_92159017的博客 724

XML读成嵌套Map,这个Java工具类5个方法纯JDK实现

本文分享一款JDK17环境下的Java XML嵌套转换工具类,内置5个开箱即用的方法,基于JDK自带DOM实现零第三方依赖,支持XML转嵌套Map、Map转XML两大核心能力,满足老系统接口对接、报文临时转换、配置导出等场景需求。工具类内置XXE防护,禁止DOCTYPE与外部实体;约定#attrs存属性、#text存混合内容,自动处理同名兄弟标签聚合成List、空元素识别、转义防护等复杂场景;提供XML声明开关、属性/文本键常量,边界处理严格,异常信息明确,读写结果可预判且往返恒等,适合报文对接、配置转换、

Java后端 | AI智能体应用实战派 | 电脑技能行家 280

第 05 篇|慢查询优化实战 —— 一条 SQL 的重构全过程

本文是「数据库性能优化」系列的第 05 篇,把第 04 篇的索引与执行计划原理,落地成一套可复用的慢查询优化流程。全程沿用第 02 篇的订单表作为案例,从慢日志采集、六步分析法,到六个经典慢查询场景的双库改写,再到 sysbench 与 pgbench 的压测量化,最后产出一份可打印的优化 checklist,让系列前后呼应、闭环落地。

Diligently 510

LKDS8.Linux内核的双向链表代码解析(8) 拼接链表、获取链表首/尾元素的宏、list_for_each系列的安全版本的宏

本文系统解析了Linux内核双向链表的核心操作:list_splice()系列函数实现链表拼接,list_splice_init()与list_splice_tail_init()在拼接后重置源链表;通过宏如list_first_entry_or_null、list_last_entry_or_null安全获取首尾节点;list_for_each_safe等安全遍历宏利用临时指针避免删除时断链,保障遍历安全。结合栈与队列语义,揭示其在内核内存管理中的高效应用。

zhangcoder的博客 记录学习轨迹~ 260

MCP 工具治理落地清单:5 个模块、43 个检查项,把最小权限从 PPT 搬到网关配置里

"无状态之后要重做工具治理"谁都会说,排期时却没人愿意先动。这篇给能直接勾的清单:暴露面分档、凭证改单调用、句柄归属校验、header 与 body 交叉校验、审计幂等与缓存隔离,每模块配检查项、失败模式表与对策,末尾附决策对照表和一个失败案例、一个成功案例。

沛哥儿的专栏 41

【C++高并发内存池】7.CentralCache回收与PageCache内存合并

书接上回,我们讲完了ThreadCache的内存回收机制,当CentralCache的span内存回收完毕,就可以将整个span还给PageCache,下面从span的回收入口函数ReleaseSpanToPageCache开始深入完善

cyzzzuzm的博客 315
上一篇: How to debug Windows services
下一篇: Reverse Engineering and Debug Tools
phiger
博客等级 码龄24年 20粉丝 35原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值