我们可能想要对产品代码执行错误校验。
We might want to perform error checking for production code.
图1显示了每行代码执行后各对象的状态。
Figure 1 shows the state of the objects after each line of code executes.
代码执行漏洞随处可见。
在这段代码执行后,对象布局就如图2所示。
After this code executes, the object layout is as depicted in Figure 2.
还是代码执行速度?
原因类似:远程代码执行(bug 430826)。
正如您可能猜出的,上面的代码不会执行预期操作。
As you may have guessed, the above code will not perform the desired action.
现在可以执行该代码了。
并没有执行任何代码。
如果我们在“控制”模式,那么控制代码将被执行(3)。
If we are in "control" mode, then control code is executed (3).
只在特定平台上执行的代码。
因此没有任何理由执行这些代码。
注意到每次重载此页面时,该代码都会立即执行。
You'll notice that the code immediately executes each time you reload the page.
此时,您应继续进行下一步,并执行代码。
At this point, you should continue to the next step and execute the code.
另一种方法首先使得在堆栈上执行代码变得不可能。
Another approach starts by making it impossible to execute code on the stack.
add_user . php中的代码首先执行一个查询以找到id的最大值。
The code in add_user.php first performs a query to find the maximum value of the id.
假设您执行以下的代码
如果匹配,那么将执行相应的代码。
实例初始化器允许您为一个匿名内部类执行构造代码。
Instance initializers allow you to execute construction code for an anonymous inner class.
在任何一个程序里只有10%的代码会被执行。
Only ten percent of the code in any given program will ever execute.
执行时,此代码生成如图5所示的页面。
When executed, the code produces the page shown in Figure 5.
Advice是在joinpoint之前、之后或周围执行的代码。
Advice is code that executes before, after, or around a join point.
注意,本例中执行实际搜索的代码非常简单。
Note that the actual code that performs the search in this example is quite trivial.
否则,执行该结构下部的代码组。
Otherwise, the code groups in the lower part of the structure execute.
显然,必须有一些代码,希望对其执行时间进行基准测试。
Obviously, you must have some code whose execution time you want to benchmark.
有了此代码后,我们就做好了执行测试的准备。
With this code in place, we are now ready to execute the test.
你的全部代码都是“在数据库里”执行的。
接着您希望执行使用这个对象模型的代码文件。
You then want to execute files of code that consume that object model.
每发现一个匹配对象,就会执行一个动作(代码块)。
Everywhere a match can be found, an action (code block) can be executed.
每发现一个匹配对象,就会执行一个动作(代码块)。
Everywhere a match can be found, an action (code block) can be executed.
应用推荐